Skip to content

Commit

Permalink
database: Return explicit nil instead of err.
Browse files Browse the repository at this point in the history
No functional change because err is already checked and known to be nil,
but explicitly returning nil is easier/quicker to interpret when
reading.
  • Loading branch information
jholdstock committed Aug 25, 2023
1 parent fe8e63a commit 9f73125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (vdb *VspDatabase) writeHotBackupFile() error {

vdb.log.Tracef("Database backup written to %s", backupPath)

return err
return nil
}

// CreateNew intializes a new bbolt database with all of the necessary vspd
Expand Down

0 comments on commit 9f73125

Please sign in to comment.