Skip to content

Commit 04c3488

Browse files
committed
Fix rubocop complaint
1 parent 489cb2c commit 04c3488

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def authenticate
138138
if ENV["BASIC_AUTH_BYPASS"].present?
139139
header_key, header_value = ENV["BASIC_AUTH_BYPASS"].split(":").map(&:strip)
140140

141-
if ENV["BASIC_AUTH_BYPASS"].present? && request.headers.key?(header_key) and request.headers[header_key] == header_value
141+
if ENV["BASIC_AUTH_BYPASS"].present? && request.headers.key?(header_key) && (request.headers[header_key] == header_value)
142142
return true
143143
end
144144
end

0 commit comments

Comments
 (0)