generated from Nodarx/template
refactor: unify command complition checking
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -49,9 +49,7 @@ final class FetchResultReader
|
||||
}
|
||||
|
||||
if ($response instanceof TaggedResponse) {
|
||||
if (!$response->isOk()) {
|
||||
throw new ImapException('FETCH failed: ' . $response->text());
|
||||
}
|
||||
CompletionChecker::assertSuccess('FETCH', $response);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user