提交 995ad3b3 编写于 作者: A Aaron Patterson

just use if rather than nil?

上级 b3c7766d
......@@ -26,7 +26,7 @@ def self.sqlite3_connection(config) # :nodoc:
:results_as_hash => true
)
db.busy_timeout(config[:timeout]) unless config[:timeout].nil?
db.busy_timeout(config[:timeout]) if config[:timeout]
ConnectionAdapters::SQLite3Adapter.new(db, logger, config)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册