reduce code complexity a bit

This commit is contained in:
Robin Appelman 2016-08-26 23:59:48 +02:00
commit 2601885185
2 changed files with 43 additions and 38 deletions

View file

@ -401,7 +401,11 @@ class Share extends AbstractShare {
* @return bool
*/
protected function parseOutput($lines, $path = '') {
return $this->parser->checkForError($lines, $path);
if (count($lines) === 0) {
return true;
} else {
return $this->parser->checkForError($lines, $path);
}
}
/**