Skip to content

Commit f3e2ab3

Browse files
committed
Remove warning of unused variable
1 parent 4d7dd0c commit f3e2ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sprockets/rails/sourcemapping_url_processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def self.call(input)
88
env = input[:environment]
99
context = env.context_class.new(input)
1010
data = input[:data].gsub(REGEX) do |_match|
11-
ensure_file_is_present = context.resolve($1)
11+
context.resolve($1) # Ensure file is present
1212
"//# sourceMappingURL=#{context.asset_path($1)}\n//!\n"
1313
rescue Sprockets::FileNotFound
1414
env.logger.warn "Removed sourceMappingURL comment for missing asset '#{$1}' from #{input[:filename]}"

0 commit comments

Comments
 (0)