Skip to content

Commit

Permalink
cmd: use empty string intead of '.'
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Jan 3, 2025
1 parent 179e336 commit 4a9adb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/hostd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ func defaultDataDirectory(fp string) string {

// check for databases in the current directory
if _, err := os.Stat("hostd.db"); err == nil {
return "."
return ""
} else if _, err := os.Stat("hostd.sqlite3"); err == nil {
return "."
return ""
}

// default to the operating system's application directory
Expand Down

0 comments on commit 4a9adb6

Please sign in to comment.