Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HDT3213 committed May 18, 2021
1 parent 1ca15f8 commit 68ae54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var defaultProperties = &config.ServerProperties{

func fileExists(filename string) bool {
info, err := os.Stat(filename)
return err != nil && !info.IsDir()
return err == nil && !info.IsDir()
}

func main() {
Expand Down

0 comments on commit 68ae54f

Please sign in to comment.