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