Skip to content

Commit

Permalink
Fix style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpalmer committed May 1, 2020
1 parent c33b6a9 commit 78e5893
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions classes/DataWarehouse/Export/FileManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,8 @@ public function createZipFile($dataFile, array $request)
));
}

if (!$zip->addFromString('README.txt',
$this->getReadmeText($request['realm']))
) {
$readmeText = $this->getReadmeText($request['realm']);
if (!$zip->addFromString('README.txt', $readmeText)) {
throw new Exception(sprintf(
'Failed to add "README.txt" to zip file "%s"',
$dataFile,
Expand Down

0 comments on commit 78e5893

Please sign in to comment.