Use size.to_i instead of if-condition

This commit is contained in:
Shinya Maeda 2018-05-15 16:05:22 +09:00
parent 526656e6ee
commit 49ff3d9c98
1 changed files with 1 additions and 1 deletions

View File

@ -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)