lib/gooddata/models/model.rb in gooddata-0.6.10 vs lib/gooddata/models/model.rb in gooddata-0.6.11
- old
+ new
@@ -118,10 +118,10 @@
res = client.poll_on_response(task['pullTask']['uri']) do |body|
body['taskStatus'] == 'RUNNING' || body['taskStatus'] == 'PREPARED'
end
- if res['taskStatus'] == 'ERROR'
+ if res['taskStatus'] == 'ERROR' # rubocop:disable Style/GuardClause
s = StringIO.new
client.download_from_user_webdav(File.basename(dir) + '/upload_status.json', s)
js = MultiJson.load(s.string)
fail "Load Failed with error #{JSON.pretty_generate(js)}"
end