Fix ameba inspections

This commit is contained in:
Anton Vakhrushev
2019-10-14 18:16:44 +03:00
parent b63c00cea4
commit ea5e7950de
5 changed files with 13 additions and 14 deletions

View File

@ -39,7 +39,7 @@ class CLI::CommandRouter
m = command.match(pattern)
return false if m.nil?
groups = m.named_captures
nil_groups = groups.select { |k, v| v.nil? }
nil_groups = groups.select { |_, v| v.nil? }
return false if nil_groups.size != 0
params = groups.transform_values { |v| v.to_s }
cb.call params