mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-19 07:40:20 +00:00
fix golangci ? not too sure what's going on here
This commit is contained in:
committed by
André Roth
parent
b4a171b3ea
commit
a2fb925a94
+2
-2
@@ -48,9 +48,9 @@ func NewPublishedStorage(bucket, prefix, credentialsFile, serviceAccountJSON,
|
||||
if endpoint != "" {
|
||||
opts = append(opts, option.WithEndpoint(endpoint), option.WithoutAuthentication())
|
||||
} else if credentialsFile != "" {
|
||||
opts = append(opts, option.WithCredentialsFile(credentialsFile))
|
||||
opts = append(opts, option.WithAuthCredentialsFile(option.ServiceAccount, credentialsFile))
|
||||
} else if serviceAccountJSON != "" {
|
||||
opts = append(opts, option.WithCredentialsJSON([]byte(serviceAccountJSON)))
|
||||
opts = append(opts, option.WithAuthCredentialsJSON(option.ServiceAccount, []byte(serviceAccountJSON)))
|
||||
}
|
||||
|
||||
if project != "" {
|
||||
|
||||
Reference in New Issue
Block a user