Commit 578eb92c authored by Olivier Halligon's avatar Olivier Halligon

shush rubocop

parent f1f43240
...@@ -44,7 +44,7 @@ Metrics/LineLength: ...@@ -44,7 +44,7 @@ Metrics/LineLength:
# Offense count: 106 # Offense count: 106
# Configuration parameters: CountComments. # Configuration parameters: CountComments.
Metrics/MethodLength: Metrics/MethodLength:
Max: 39 Max: 40
# Offense count: 12 # Offense count: 12
Metrics/PerceivedComplexity: Metrics/PerceivedComplexity:
......
...@@ -330,11 +330,9 @@ module Pod ...@@ -330,11 +330,9 @@ module Pod
# @raise if the query is not a valid regular expression # @raise if the query is not a valid regular expression
# #
def validate_regex!(query) def validate_regex!(query)
begin /#{query}/
/#{query}/ rescue RegexpError
rescue RegexpError help! 'A valid regular expression is required.'
help! 'A valid regular expression is required.'
end
end end
# @return [Fixnum] the index of the chosen array item # @return [Fixnum] the index of the chosen array item
......
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