mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 17:00:57 -06:00
make sonarcloud happy
Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
@@ -36,8 +36,7 @@ func Server(opts ...Option) (http.Service, error) {
|
||||
return http.Service{}, fmt.Errorf("could not initialize http service: %w", err)
|
||||
}
|
||||
|
||||
var signingKeyStore microstore.Store
|
||||
signingKeyStore = store.Create(
|
||||
signingKeyStore := store.Create(
|
||||
store.Store(options.Config.SigningKeys.Store),
|
||||
store.TTL(options.Config.SigningKeys.TTL),
|
||||
microstore.Nodes(options.Config.SigningKeys.Nodes...),
|
||||
|
||||
@@ -65,8 +65,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
store.Authentication(cfg.OIDC.UserinfoCache.AuthUsername, cfg.OIDC.UserinfoCache.AuthPassword),
|
||||
)
|
||||
|
||||
var signingKeyStore microstore.Store
|
||||
signingKeyStore = store.Create(
|
||||
signingKeyStore := store.Create(
|
||||
store.Store(cfg.PreSignedURL.SigningKeys.Store),
|
||||
store.TTL(cfg.PreSignedURL.SigningKeys.TTL),
|
||||
microstore.Nodes(cfg.PreSignedURL.SigningKeys.Nodes...),
|
||||
|
||||
Reference in New Issue
Block a user