mirror of
https://github.com/rails/jquery-rails.git
synced 2026-01-10 07:07:54 -05:00
Remove unused variable warning.
This commit is contained in:
2
Rakefile
2
Rakefile
@@ -19,7 +19,7 @@ task :guard_version do
|
||||
def check_version(file, pattern, constant)
|
||||
body = File.read("vendor/assets/javascripts/#{file}")
|
||||
match = body.match(pattern) or abort "Version check failed: no pattern matched in #{file}"
|
||||
file_version = body.match(pattern)[1]
|
||||
file_version = match[1]
|
||||
constant_version = Jquery::Rails.const_get(constant)
|
||||
|
||||
unless constant_version == file_version
|
||||
|
||||
Reference in New Issue
Block a user