Commit 2c7b4132 authored by Alex Kalderimis's avatar Alex Kalderimis

Prefer if to unless

parent d8d05022
......@@ -63,7 +63,7 @@ module Gitlab
end
def executed_sql(sql)
@sql_executed << sql unless @count > LOG_THRESHOLD
@sql_executed << sql if @count <= LOG_THRESHOLD
end
def raise_error?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment