Skip to content

Commit a6fc8d8

Browse files
authored
Update version_checker.rb (#1039)
1 parent 8d9029e commit a6fc8d8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/react_on_rails/version_checker.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ def relative_path?
8282
def major_minor_patch
8383
return if relative_path?
8484
match = raw.match(MAJOR_MINOR_PATCH_VERSION_REGEX)
85-
unless match
86-
raise "Cannot parse version number '#{raw}' (wildcard versions are not supported)"
87-
end
85+
raise "Cannot parse version number '#{raw}' (wildcard versions are not supported)" unless match
8886
[match[1], match[2], match[3]]
8987
end
9088

0 commit comments

Comments
 (0)