Skip to content

Commit

Permalink
sqlite: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Sep 11, 2024
1 parent 676b395 commit 2521c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persist/sqlite/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (s *Store) Backup(ctx context.Context, destPath string) (err error) {
// prevent overwriting the destination file
if _, err := os.Stat(destPath); !errors.Is(err, os.ErrNotExist) {
return errors.New("destination file already exists")
} else if len(destPath) == 0 {
} else if destPath == "" {
return errors.New("empty destination path")
}

Expand Down

0 comments on commit 2521c6b

Please sign in to comment.