Fix rubucop offenses

parent cd94c62a
......@@ -90,8 +90,7 @@ module Gitlab
commit_validation = push_rule.try(:commit_validation?)
# if newrev is blank, the branch was deleted
return if Gitlab::Git.blank_ref?(@newrev) ||
!(commit_validation || validate_path_locks?)
return if Gitlab::Git.blank_ref?(@newrev) || !(commit_validation || validate_path_locks?)
commits.each do |commit|
next if commit_from_annex_sync?(commit.safe_message)
......
......@@ -49,8 +49,8 @@ module Gitlab
def self.oauth_authentication
return false unless Gitlab::Geo.secondary?
RequestStore.store[:geo_oauth_application] ||= Gitlab::Geo.current_node.oauth_application or
raise OauthApplicationUndefinedError
RequestStore.store[:geo_oauth_application] ||=
Gitlab::Geo.current_node.oauth_application or raise OauthApplicationUndefinedError
end
end
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