about summary refs log tree commit diff
path: root/app/models/concerns/omniauthable.rb
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-08 01:06:50 -0500
committerGitHub <noreply@github.com>2023-02-08 07:06:50 +0100
commit8c1b65c7ddb9d49cb33c15c9a92dbfefebe868c6 (patch)
tree2fe80dcbbf7478b07071c2fb260d906a604103c8 /app/models/concerns/omniauthable.rb
parent1487fcde93fece43ea786faade93d3dfaa393e67 (diff)
Apply Rubocop Style/RedundantAssignment (#23452)
Diffstat (limited to 'app/models/concerns/omniauthable.rb')
-rw-r--r--app/models/concerns/omniauthable.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/concerns/omniauthable.rb b/app/models/concerns/omniauthable.rb
index feac0a1f5..7d54e9d6d 100644
--- a/app/models/concerns/omniauthable.rb
+++ b/app/models/concerns/omniauthable.rb
@@ -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