fix a linter issue

Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
Dmitri Dolguikh
2026-08-13 15:45:30 +02:00
parent 9fed4ce414
commit c004d09d77
2 changed files with 9 additions and 2 deletions
@@ -2,6 +2,7 @@ package networkmapdbfactory
import (
"context"
"errors"
"fmt"
"os"
@@ -17,6 +18,8 @@ import (
const storeSqliteFileName = "store.db"
var NotSupportedStoreEngineError = errors.New("unsupported store engine")
func NewNetworkMapDBStore(
ctx context.Context,
kind types.Engine,
@@ -58,7 +61,7 @@ func NewNetworkMapDBStore(
}, nil
}
return nil, nil
return nil, fmt.Errorf("networkmap store doesn't support engine %s, %w", kind, NotSupportedStoreEngineError)
}
func mustLookupDsnEnv() (string, error) {