Skip to content

Commit

Permalink
No need to call self here
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Jun 5, 2020
1 parent 32c10b6 commit 0bcb8ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sprockets/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,14 @@ def load_from_unloaded(unloaded)
metadata[:charset] = source.encoding.name.downcase unless metadata.key?(:charset)
metadata[:digest] = digest(source)
metadata[:length] = source.bytesize
metadata[:environment_version] = self.version
metadata[:environment_version] = version
else
dependencies << build_file_digest_uri(unloaded.filename)
metadata = {
digest: file_digest(unloaded.filename),
length: self.stat(unloaded.filename).size,
dependencies: dependencies,
environment_version: self.version,
environment_version: version,
}
end

Expand Down

0 comments on commit 0bcb8ae

Please sign in to comment.