2 parents 7933cf2 + 659151c commit 25af3a6Copy full SHA for 25af3a6
1 file changed
db/username_changes.go
@@ -37,7 +37,7 @@ func CanUserChangeUsername(userId int) (bool, time.Time, error) {
37
if result.Error != nil {
38
// User has never changed their name previously.
39
if result.Error == gorm.ErrRecordNotFound {
40
- return true, time.Time{}, result.Error
+ return true, time.Time{}, nil
41
}
42
43
return false, time.Time{}, result.Error
0 commit comments