Skip to content

Commit

Permalink
Improve log message
Browse files Browse the repository at this point in the history
"... '#{resolved_path}' from #{resolved_path}" makes no sense, as it references the same variable twice.

We can just drop the last one from the warning
  • Loading branch information
tmaier authored Jul 19, 2023
1 parent 26082d0 commit 3538216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/propshaft/compiler/source_mapping_urls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def source_mapping_url(resolved_path, comment)
if asset = assembly.load_path.find(resolved_path)
"#{comment}# sourceMappingURL=#{url_prefix}/#{asset.digested_path}"
else
Propshaft.logger.warn "Removed sourceMappingURL comment for missing asset '#{resolved_path}' from #{resolved_path}"
Propshaft.logger.warn "Removed sourceMappingURL comment for missing asset '#{resolved_path}'"
comment
end
end
Expand Down

0 comments on commit 3538216

Please sign in to comment.