Skip to content

Commit

Permalink
handle case where empty encodings hash
Browse files Browse the repository at this point in the history
chuckremes committed Jul 6, 2016
1 parent f2f34d5 commit 3bd3998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/io.rb
Original file line number Diff line number Diff line change
@@ -3393,7 +3393,7 @@ def write(data)
data.encode!(external_encoding)
end
end
data.encode!(@encoding_options) unless @encoding_options.empty?
data.encode!(@encoding_options) unless (@encoding_options || {}).empty?

# if @sync
@fd.write(data)

0 comments on commit 3bd3998

Please sign in to comment.