Skip to content

Commit

Permalink
scrutinizer suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
lowtower committed Aug 8, 2018
1 parent b68665b commit b729d46
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Commands/RunCommand.php
Expand Up @@ -323,16 +323,12 @@ public function getMeasuresFromCommit(BuildService $buildService, string $projec
switch ($result) {
case 9:
throw new \RuntimeException("An error occurred while unzipping artifact from commit $commitId. Error code $result: No such file");
break;
case 11:
throw new \RuntimeException("An error occurred while unzipping artifact from commit $commitId. Error code $result: Can't open file");
break;
case 19:
throw new \RuntimeException("An error occurred while unzipping artifact from commit $commitId. Error code $result: Not a zip archive");
break;
default:
throw new \RuntimeException("An error occurred while unzipping artifact from commit $commitId. Error code $result: ".$zipFile->getStatusString());
break;
}
}
return $this->getMeasuresFromZipFile($zipFile, $cloverPath, $crap4JPath);
Expand Down

0 comments on commit b729d46

Please sign in to comment.