From f76747497785dd47f5bf9676867925d61010e122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=82=E5=B7=9D=E6=81=AD=E4=BD=91=20=28ebi=29?= Date: Thu, 24 Jun 2021 17:20:14 +0900 Subject: [PATCH] Remove a redundant error checking condition --- example/main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/example/main.go b/example/main.go index 2cfd584f..9f53b5f9 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, `