Signed-off-by: Ren Wen 15991987063@163.com --- src/lib/job.cr | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/lib/job.cr b/src/lib/job.cr index 2418c82..1815b93 100644 --- a/src/lib/job.cr +++ b/src/lib/job.cr @@ -289,9 +289,7 @@ class Job "SCHED_PORT"]
initialized_keys.each do |key| - if @hash.has_key?(key) == false - return false - end + return false unless @hash.has_key?(key) end
return false if "#{@hash["id"]}" == ""