fix golangci ? not too sure what's going on here

This commit is contained in:
Pierig Le Saux
2026-04-26 20:34:26 -04:00
committed by André Roth
parent b4a171b3ea
commit a2fb925a94
+2 -2
View File
@@ -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 != "" {