Apply linter autofixes: internal/storage, types, ui (refs #61)
This commit is contained in:
1 parent
1e05fa0dd7
commit
0296e26210
8 files changed
+106
-15
No files matched your search
@@ -24,6 +24,7 @@ func NewStorer(cfg *config.Config) (Storer, error) {
|
||||
if cfg.StorageURL != "" {
|
||||
return storerFromURL(cfg.StorageURL, cfg)
|
||||
}
|
||||
|
||||
return storerFromLegacyS3Config(cfg)
|
||||
}
|
||||
|
||||
@@ -71,6 +72,7 @@ func storerFromURL(rawURL string, cfg *config.Config) (Storer, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("creating S3 client: %w", err)
|
||||
}
|
||||
|
||||
return NewS3Storer(client), nil
|
||||
|
||||
case "rclone":
|
||||
@@ -109,5 +111,6 @@ func storerFromLegacyS3Config(cfg *config.Config) (Storer, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("creating S3 client: %w", err)
|
||||
}
|
||||
|
||||
return NewS3Storer(client), nil
|
||||
}
|
||||
Reference in new issue
Block a user