lib/dynflow/director/queue_hash.rb in dynflow-1.8.2 vs lib/dynflow/director/queue_hash.rb in dynflow-1.8.3

- old
+ new

@@ -1,14 +1,15 @@ # frozen_string_literal: true + module Dynflow class Director class QueueHash include Algebrick::TypeCheck def initialize(key_type = Object, value_type = Object) @key_type = key_type @value_type = value_type - @stash = Hash.new { |hash, key| hash[key] = [] } + @stash = Hash.new { |hash, key| hash[key] = [] } end def push(key, value) Type! key, @key_type Type! value, @value_type