Apply Rubocop Style/RedundantAssignment (#23452)
This commit is contained in:
parent
1487fcde93
commit
8c1b65c7dd
2 changed files with 2 additions and 4 deletions
|
@ -97,8 +97,7 @@ module Omniauthable
|
|||
def ensure_valid_username(starting_username)
|
||||
starting_username = starting_username.split('@')[0]
|
||||
temp_username = starting_username.gsub(/[^a-z0-9_]+/i, '')
|
||||
validated_username = temp_username.truncate(30, omission: '')
|
||||
validated_username
|
||||
temp_username.truncate(30, omission: '')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue