mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-13 18:00:05 +00:00
remove superflous call
This commit is contained in:
@@ -126,7 +126,6 @@ func StaticHandler(rw http.ResponseWriter, req *http.Request) {
|
||||
|
||||
f, err := os.Open("assets/" + path)
|
||||
if err != nil {
|
||||
rw.WriteHeader(http.StatusNotFound)
|
||||
return
|
||||
}
|
||||
defer f.Close()
|
||||
|
Reference in New Issue
Block a user