Skip to content

Commit 2c38f35

Browse files
committed
fix(be): null pointer
1 parent aa4780f commit 2c38f35

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

db/factory/store.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ func CreateStoreWithConfig(config util.DbConfig) db.Store {
2121
case util.DbDriverBolt:
2222
return bolt.CreateBoltDBWithConfig(config)
2323

24-
case util.DbDriverMySQL:
25-
case util.DbDriverPostgres:
26-
case util.DbDriverSQLite:
24+
case util.DbDriverMySQL, util.DbDriverPostgres, util.DbDriverSQLite:
2725
return sql.CreateDbWithConfig(config)
2826

2927
default:

0 commit comments

Comments
 (0)