Add nilerr linter

This commit is contained in:
Deluan
2022-09-30 20:18:14 -04:00
parent 364e699ac1
commit f82df70302
7 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ func (r userPropsRepository) Put(userId, key string, value string) error {
update := Update(r.tableName).Set("value", value).Where(And{Eq{"user_id": userId}, Eq{"key": key}})
count, err := r.executeSQL(update)
if err != nil {
return nil
return err
}
if count > 0 {
return nil