Commit 3fffa217 authored by Cool Fire's avatar Cool Fire

Use nicer syntax for case insensitve username lookup

parent bdee1119
Pipeline #1961 passed with stage
in 2 minutes and 23 seconds
......@@ -152,7 +152,7 @@ class Manager2Api < Sinatra::Base
# Check if user exists
def user_check(username)
data = git_get
data.keys.map { |u| u.downcase }.include? username.downcase
data.keys.map(&:downcase).include? username.downcase
end
# rubocop:enable Metrics/BlockLength
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment