Remove unncessary `to_time` in cluster services

This commit is contained in:
Dylan Griffith 2019-04-30 14:59:48 +10:00 committed by Stan Hu
parent d252b99a0e
commit 3d94ab3222
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ module Clusters
end
def timed_out?
Time.now.utc - app.updated_at.to_time.utc > ClusterWaitForAppInstallationWorker::TIMEOUT
Time.now.utc - app.updated_at.utc > ClusterWaitForAppInstallationWorker::TIMEOUT
end
def remove_installation_pod

View File

@ -47,7 +47,7 @@ module Clusters
end
def timed_out?
Time.now.utc - app.updated_at.to_time.utc > WaitForUninstallAppWorker::TIMEOUT
Time.now.utc - app.updated_at.utc > WaitForUninstallAppWorker::TIMEOUT
end
def remove_installation_pod