Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzobrain committed Jul 12, 2023
1 parent 145c054 commit ed54390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xsd/objects/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def import_map_children(name, cache)
def import_by_namespace(ns_or_prefix)
aliases = [
ns_or_prefix,
namespaces["xmlns:#{(ns_or_prefix || '').gsub(/^xmlns:/, '')}"],
namespaces["xmlns:#{(ns_or_prefix || '').gsub(/^xmlns:/, '')}"]
].compact

imports.find { |import| aliases.include?(import.namespace) }
Expand Down

0 comments on commit ed54390

Please sign in to comment.