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
@@ -53,7 +53,7 @@ func (p *MockedPropertyRepo) DefaultGet(id string, defaultValue string) (string,
p.init()
v, err := p.Get(id)
if err != nil {
return defaultValue, nil
return defaultValue, nil //nolint:nilerr
}
return v, nil
}
+1 -1
View File
@@ -53,7 +53,7 @@ func (p *MockedUserPropsRepo) DefaultGet(userId, key string, defaultValue string
p.init()
v, err := p.Get(userId, key)
if err != nil {
return defaultValue, nil
return defaultValue, nil //nolint:nilerr
}
return v, nil
}