From af3c1536879e752f738a177afc5f4e625c57a273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Tue, 12 Dec 2017 11:33:35 +0100 Subject: [PATCH] make robocop :robot: happy --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index a2db3a8e428..e44b0c665b0 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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)