lib/enop/dbutil/enopmgr.rb in enop-0.1.5 vs lib/enop/dbutil/enopmgr.rb in enop-0.1.6

- old
+ new

@@ -54,10 +54,14 @@ if current_ennblist[ item[0] ] != item[1] hsx[ item[0] ] = item[1] end hsx } - current_ennblist.update(value_hs) if value_hs.size > 0 + if value_hs.size > 0 + if value_hs.all? { |item| item[1] != nil } + current_ennblist.update(value_hs) + end + end end else # ignore this case. end