Skip to content

Commit 3bd3998

Browse files
committedJul 6, 2016
handle case where empty encodings hash
1 parent f2f34d5 commit 3bd3998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/io.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3393,7 +3393,7 @@ def write(data)
33933393
data.encode!(external_encoding)
33943394
end
33953395
end
3396-
data.encode!(@encoding_options) unless @encoding_options.empty?
3396+
data.encode!(@encoding_options) unless (@encoding_options || {}).empty?
33973397

33983398
# if @sync
33993399
@fd.write(data)

0 commit comments

Comments
 (0)
Please sign in to comment.