We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d9029e commit a6fc8d8Copy full SHA for a6fc8d8
lib/react_on_rails/version_checker.rb
@@ -82,9 +82,7 @@ def relative_path?
82
def major_minor_patch
83
return if relative_path?
84
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
+ raise "Cannot parse version number '#{raw}' (wildcard versions are not supported)" unless match
88
[match[1], match[2], match[3]]
89
end
90
0 commit comments