提交 a58fcd94 编写于 作者: N Nat Welch

Not checking for nil is apparently a lot faster.

上级 667d2181
......@@ -40,7 +40,7 @@ def initialize(connection)
def header(stream)
define_params = @version ? ":version => #{@version}" : ""
if stream.respond_to?(:external_encoding) && !stream.external_encoding.nil?
if stream.respond_to?(:external_encoding) && stream.external_encoding
stream.puts "# encoding: #{stream.external_encoding.name}"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册