Skip to content

Commit

Permalink
Correct some missing spots for frozen_string_literal
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron authored and tgxworld committed May 13, 2019
1 parent 3099000 commit 982c449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/freedom_patches/sprockets_patches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ def self.concat_javascript_sources(buf, source)
end
end

Sprockets.register_bundle_metadata_reducer 'application/javascript', :data, proc { "" }, ::SprocketHack.method(:concat_javascript_sources)
Sprockets.register_bundle_metadata_reducer 'application/javascript', :data, proc { +"" }, ::SprocketHack.method(:concat_javascript_sources)

end
2 changes: 1 addition & 1 deletion lib/source_url.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def prepare
end

def evaluate(scope, locals, &block)
code = "eval("
code = +"eval("
code << data.inspect
code << " + \"\\n//# sourceURL=#{scope.logical_path}\""
code << ");\n"
Expand Down

0 comments on commit 982c449

Please sign in to comment.