fixed codeclimate errors

This commit is contained in:
dinsmol 2021-09-09 21:34:56 +03:00
parent e0c47cdb35
commit 788af6cc5f
15 changed files with 32 additions and 31 deletions

View file

@ -82,8 +82,8 @@ module Xsd
end
def schemas_by_name
prefixes.each_with_object({}) do |prefix, hash|
hash[prefix] = xsd_schemas.select { |filename| prefix_check(prefix, filename) }.uniq.sort
prefixes.index_with do |prefix|
xsd_schemas.select { |filename| prefix_check(prefix, filename) }.uniq.sort
end
end