From 23c40db4cb7e1b02863977a8fb696ef089ab2e37 Mon Sep 17 00:00:00 2001 From: cos Date: Sun, 11 Mar 2018 18:30:35 +0800 Subject: Remove unnecessary defer. Not needed since statement is at end of function. --- hisgle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hisgle.go b/hisgle.go index 2ef755a..f1cb6cf 100644 --- a/hisgle.go +++ b/hisgle.go @@ -118,5 +118,5 @@ func main() { } } } - defer db.Close() + db.Close() } -- cgit v1.2.3