Skip to content
Snippets Groups Projects
Commit 51c167ee authored by Robert Speicher's avatar Robert Speicher
Browse files

Enable Performance/RangeInclude cop and fix single offense

parent bc806831
No related branches found
No related tags found
No related merge requests found
Loading
@@ -957,10 +957,9 @@ Performance/EndWith:
Loading
@@ -957,10 +957,9 @@ Performance/EndWith:
Performance/LstripRstrip: Performance/LstripRstrip:
Enabled: true Enabled: true
   
# TODO: Enable RangeInclude Cop.
# Use `Range#cover?` instead of `Range#include?`. # Use `Range#cover?` instead of `Range#include?`.
Performance/RangeInclude: Performance/RangeInclude:
Enabled: false Enabled: true
   
# TODO: Enable RedundantBlockCall Cop. # TODO: Enable RedundantBlockCall Cop.
# Use `yield` instead of `block.call`. # Use `yield` instead of `block.call`.
Loading
Loading
Loading
@@ -121,7 +121,7 @@ module Gitlab
Loading
@@ -121,7 +121,7 @@ module Gitlab
   
def get(url) def get(url)
response = api.get(url) response = api.get(url)
raise Unauthorized if (400..499).include?(response.code.to_i) raise Unauthorized if (400..499).cover?(response.code.to_i)
   
response response
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment