Use %w instead of %i not to create unused IDs

上级 595e74ae
......@@ -31,7 +31,7 @@ def set_winsize_teardown
end
def test_failed_path
exceptions = %i[ENODEV ENOTTY EBADF ENXIO].map {|e|
exceptions = %w[ENODEV ENOTTY EBADF ENXIO].map {|e|
Errno.const_get(e) if Errno.const_defined?(e)
}
exceptions.compact!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册