Skip to content

Commit

Permalink
Accomodate bad datasystem formats (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgronow authored May 18, 2021
1 parent fa15372 commit 24d5c24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/reso_transport/datasystem_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def parse(doc)
# ResourcePath ->

def resources
@resources ||= @json['value'].map { |v| v['Resources'] }.flatten.map { |r| [r['Name'], r] }.to_h
@resources ||= @json['value'].map { |v| v['Resources'] }.flatten.compact.map { |r| [r['Name'], r] }.to_h
end
end
end
2 changes: 1 addition & 1 deletion lib/reso_transport/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ResoTransport
VERSION = '1.5.6'.freeze
VERSION = '1.5.7'.freeze
end

0 comments on commit 24d5c24

Please sign in to comment.