mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
reduce code complexity a bit
This commit is contained in:
parent
b43c129ed9
commit
2601885185
2 changed files with 43 additions and 38 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue