Use size.to_i instead of if-condition
This commit is contained in:
parent
526656e6ee
commit
49ff3d9c98
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue