Skip to content

Commit

Permalink
Update version_checker.rb (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
justin808 committed Mar 3, 2018
1 parent 8d9029e commit a6fc8d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/react_on_rails/version_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ def relative_path?
def major_minor_patch
return if relative_path?
match = raw.match(MAJOR_MINOR_PATCH_VERSION_REGEX)
unless match
raise "Cannot parse version number '#{raw}' (wildcard versions are not supported)"
end
raise "Cannot parse version number '#{raw}' (wildcard versions are not supported)" unless match
[match[1], match[2], match[3]]
end

Expand Down

0 comments on commit a6fc8d8

Please sign in to comment.