Skip to content

Commit

Permalink
fix: should skip fields that are nil
Browse files Browse the repository at this point in the history
fixes #12
  • Loading branch information
Kyrremann committed Jul 6, 2022
1 parent 613b66f commit 52c32ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eksporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def delete_field(resource, fields)
delete_field(res, [field])
end
else
resource.delete(field)
resource.delete(field) if resource
end
else
delete_field(resource[field], fields)
Expand Down

0 comments on commit 52c32ff

Please sign in to comment.