diff --git a/db/username_changes.go b/db/username_changes.go index 7234ee8..c157533 100644 --- a/db/username_changes.go +++ b/db/username_changes.go @@ -37,7 +37,7 @@ func CanUserChangeUsername(userId int) (bool, time.Time, error) { if result.Error != nil { // User has never changed their name previously. if result.Error == gorm.ErrRecordNotFound { - return true, time.Time{}, result.Error + return true, time.Time{}, nil } return false, time.Time{}, result.Error