summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2018-03-11 18:30:35 +0800
committercos <cos>2018-03-11 18:31:02 +0800
commit23c40db4cb7e1b02863977a8fb696ef089ab2e37 (patch)
tree8cf57f9295dc943a3f814551bd8677db428deda1
parentf3b58f6d3633040ab7e02c3ec2a38f924bc3ed02 (diff)
downloadhisgle-23c40db4cb7e1b02863977a8fb696ef089ab2e37.zip
Remove unnecessary defer.
Not needed since statement is at end of function.
-rw-r--r--hisgle.go2
1 files changed, 1 insertions, 1 deletions
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()
}