Skip to content

Commit

Permalink
Fixed Windows bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ErrorNoInternet committed May 16, 2021
1 parent 28c1690 commit 39d9422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func main() {
if runtime.GOOS == "linux" {
databasePath = "/home/" + userObject.Username + "/.OkDatabase"
} else if runtime.GOOS == "windows" {
databasePath = "C:\\Users\\" + userObject.Username + "\\Documents\\OkDatabase"
databasePath = userObject.HomeDir + "\\OkDatabase"
}

rand.Seed(time.Now().UnixNano())
Expand Down

0 comments on commit 39d9422

Please sign in to comment.