Skip to content

Commit

Permalink
fix nil stat
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Jan 1, 2024
1 parent 4a7c500 commit 1910695
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ func (cr *Cluster) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
logDebugf("[handler]: Cound not download the file: %v", e)
return false
}
if stat, err = os.Stat(path); err != nil {
return false
}
} else {
return false
}
Expand Down

0 comments on commit 1910695

Please sign in to comment.