Skip to content

Commit c14b78c

Browse files
committed
Removed unnecessary code
1 parent d02dbd0 commit c14b78c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Atomx/Resources/Report.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,16 @@ public function isReady($report)
3232
public function download($report)
3333
{
3434
$reportId = $report['report']['id'];
35-
$stream = Stream::factory();
3635

3736
$this->returnStream = true;
3837

3938
$stream = $this->getUrl('report/' . $reportId, [], [
40-
// 'save_to' => $stream,
4139
// 'timeout' => 0,
4240
// 'connect_timeout' => 0
4341
]);
4442

4543
$this->returnStream = false;
44+
4645
return new ReportStreamer($stream);
4746
}
4847

@@ -60,4 +59,4 @@ protected function handleResponse(Response $response)
6059
throw new ApiException('Request failed, received the following status: ' .
6160
$response->getStatusCode() . ' Body: ' . $response->getBody()->getContents());
6261
}
63-
}
62+
}

0 commit comments

Comments
 (0)