lint: err shadowing
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user