diff --git a/example/main.go b/example/main.go index 2cfd584f4..9f53b5f9d 100644 --- a/example/main.go +++ b/example/main.go @@ -121,9 +121,7 @@ func setupHandler(www string) http.Handler { err = errors.New("couldn't get uploaded file size") } } - if err != nil { - utils.DefaultLogger.Infof("Error receiving upload: %#v", err) - } + utils.DefaultLogger.Infof("Error receiving upload: %#v", err) } io.WriteString(w, `