Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
parketh committed Nov 3, 2024
1 parent 6a4c287 commit 0a26e66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/opfgd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ func runStartCmd(ctx client.Context, cmd *cobra.Command, args []string) error {
}
defer func() {
logger.Info("Closing DB...")
if err := db.Close(); err != nil {
logger.Error("Error closing DB", zap.Error(err))
if dbErr := db.Close(); dbErr != nil {
logger.Error("Error closing DB", zap.Error(dbErr))
}
}()
err = db.CreateInitialSchema()
Expand Down

0 comments on commit 0a26e66

Please sign in to comment.