Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
csznet committed Mar 21, 2024
1 parent 248d793 commit d514538
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ func web() {
ok = false
}
f, err := os.Create(file)
defer f.Close()
if err == nil {
defer f.Close()
}
if err != nil {
ok = false
}
Expand Down

0 comments on commit d514538

Please sign in to comment.