lint: err shadowing

This commit is contained in:
Umputun
2018-02-05 02:57:03 -06:00
parent dfe7676c13
commit 339ee71642
+1 -1
View File
@@ -59,7 +59,7 @@ func (b *BoltDB) Create(comment Comment) (commentID string, err error) {
// fill ID and time if empty
if comment.ID == "" {
if err := comment.GenID(); err != nil {
if err = comment.GenID(); err != nil {
return "", err
}
}