mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
make robocop 🤖 happy
This commit is contained in:
parent
62a5b174e1
commit
af3c153687
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ class User < ActiveRecord::Base
|
|||
SiteSetting.min_username_length.to_i..SiteSetting.max_username_length.to_i
|
||||
end
|
||||
|
||||
def self.username_available?(username, email=nil)
|
||||
def self.username_available?(username, email = nil)
|
||||
lower = username.downcase
|
||||
return false if reserved_username?(lower)
|
||||
return true if !User.exists?(username_lower: lower)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue