chore(portainer): clean up the code EE-5188 (#8660)

This commit is contained in:
andres-portainer
2023-03-13 13:18:28 -03:00
committed by GitHub
parent 621a01ba3b
commit 15cbdb8af9
23 changed files with 111 additions and 65 deletions

View File

@@ -9,8 +9,7 @@ import (
// NewDatabase should use config options to return a connection to the requested database
func NewDatabase(storeType, storePath string, encryptionKey []byte) (connection portainer.Connection, err error) {
switch storeType {
case "boltdb":
if storeType == "boltdb" {
return &boltdb.DbConnection{
Path: storePath,
EncryptionKey: encryptionKey,