Skip to content

Commit 7e2cdb5

Browse files
committed
Bug fix for the commit 5de84be.
Execute force_encoding only when @source_map is a string.
1 parent 5de84be commit 7e2cdb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sassc/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def render
5757
Native.delete_data_context(data_context)
5858

5959
css.force_encoding(@template.encoding)
60-
@source_map.force_encoding(@template.encoding)
60+
@source_map.force_encoding(@template.encoding) if @source_map.is_a?(String)
6161

6262
return css unless quiet?
6363
end

0 commit comments

Comments
 (0)