diff --git a/examples/filewatch/main.go b/examples/filewatch/main.go index a2c7b85..2ac2b32 100644 --- a/examples/filewatch/main.go +++ b/examples/filewatch/main.go @@ -120,7 +120,7 @@ func serveWs(w http.ResponseWriter, r *http.Request) { } var lastMod time.Time - if n, err := strconv.ParseInt(r.FormValue("lastMod"), 16, 64); err != nil { + if n, err := strconv.ParseInt(r.FormValue("lastMod"), 16, 64); err == nil { lastMod = time.Unix(0, n) }