Hash.*has_key?* returns true although there is no value of the key.
Signed-off-by: Ren Wen 15991987063@163.com --- src/lib/job.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/job.cr b/src/lib/job.cr index e836d1f..55bac7f 100644 --- a/src/lib/job.cr +++ b/src/lib/job.cr @@ -247,7 +247,7 @@ class Job end
private def set_queue - return if @hash.has_key?("queue") + return unless self["queue"].empty?
# set default value self["queue"] = tbox_group