mirror of
https://github.com/jkaninda/go-storage.git
synced 2025-12-06 16:49:39 +01:00
refactor: refactoring of code to meet all go lint requirements
This commit is contained in:
@@ -55,12 +55,12 @@ func createClient(conf Config) (*azblob.Client, error) {
|
||||
// Create the service URL
|
||||
credential, err := azblob.NewSharedKeyCredential(conf.AccountName, conf.AccountKey)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to create credential: %v", err)
|
||||
return nil, fmt.Errorf("failed to create service URL")
|
||||
}
|
||||
serviceURL := fmt.Sprintf("https://%s.blob.core.windows.net/", conf.AccountName)
|
||||
client, err := azblob.NewClientWithSharedKeyCredential(serviceURL, credential, nil)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to create client: %v", err)
|
||||
return nil, fmt.Errorf("failed to create client")
|
||||
}
|
||||
return client, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user