Commit 49ff3d9c authored by Shinya Maeda's avatar Shinya Maeda

Use size.to_i instead of if-condition

parent 526656e6
......@@ -70,7 +70,7 @@ module Ci
end
def update_project_statistics_after_destroy
update_project_statistics(-self.size) if self.size
update_project_statistics(-self.size.to_i)
end
def update_project_statistics(difference)
......
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