summaryrefslogtreecommitdiff
path: root/internal/commands/helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/commands/helpers.go')
-rw-r--r--internal/commands/helpers.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/internal/commands/helpers.go b/internal/commands/helpers.go
index 84ff9074c..af889af1c 100644
--- a/internal/commands/helpers.go
+++ b/internal/commands/helpers.go
@@ -13,16 +13,7 @@ import (
)
func getStorageProvider(ctx *CmdCtx) (provider storage.Provider) {
- switch {
- case ctx.config.Storage.PostgreSQL != nil:
- return storage.NewPostgreSQLProvider(ctx.config, ctx.trusted)
- case ctx.config.Storage.MySQL != nil:
- return storage.NewMySQLProvider(ctx.config, ctx.trusted)
- case ctx.config.Storage.Local != nil:
- return storage.NewSQLiteProvider(ctx.config)
- default:
- return nil
- }
+ return storage.NewProvider(ctx.config, ctx.trusted)
}
func containsIdentifier(identifier model.UserOpaqueIdentifier, identifiers []model.UserOpaqueIdentifier) bool {