Skip to content

Commit

Permalink
Return if source bytesize is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Nov 14, 2017
1 parent 3b13ef8 commit e59e64d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sprockets/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def string_end_with_semicolon?(str)
#
# Returns buf String.
def concat_javascript_sources(buf, source)
return buf if source.bytesize < 0
return buf if source.bytesize <= 0

buf << source
# If the source contains non-ASCII characters, indexing on it becomes O(N).
Expand Down

0 comments on commit e59e64d

Please sign in to comment.