Skip to content

Commit f79d181

Browse files
gabyxbrianmcgee
andauthored
format.go aktualisieren
Co-authored-by: Brian McGee <[email protected]>
1 parent 99790ff commit f79d181

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/format/format.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ func Run(v *viper.Viper, statz *stats.Stats, cmd *cobra.Command, paths []string)
8888

8989
// ensure db is closed after we're finished
9090
defer func() {
91-
if e := db.Close(); e != nil {
92-
log.Errorf("failed to close cache: %v", e)
91+
if closeErr := db.Close(); closeErr != nil {
92+
log.Errorf("failed to close cache: %v", closeErr)
9393
}
9494
}()
9595
}

0 commit comments

Comments
 (0)