requirements/perl_requirement: fix Rubocop warnings.
This commit is contained in:
parent
fb0e121686
commit
dab681e715
@ -3,7 +3,7 @@ class PerlRequirement < Requirement
|
||||
default_formula "perl"
|
||||
|
||||
def initialize(tags)
|
||||
@version = tags.shift if /^\d+\.\d+$/ === tags.first
|
||||
@version = tags.shift if /^\d+\.\d+$/ =~ tags.first
|
||||
raise "PerlRequirement requires a version!" unless @version
|
||||
super
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user