lib/tikkie/api/responses/platforms.rb in tikkie-api-0.1.0 vs lib/tikkie/api/responses/platforms.rb in tikkie-api-0.1.1

- old
+ new

@@ -15,11 +15,13 @@ def platforms @platforms ||= begin platforms = [] - data.each do |platform| - platforms << Tikkie::Api::Responses::Platform.new(platform) + unless error? + data.each do |platform| + platforms << Tikkie::Api::Responses::Platform.new(platform) + end end platforms end end