Skip to content
Browse files

Removing isError nonsense

  • Loading branch information...
1 parent 545bd0e commit ba4c048a776da39174b0dddaec49abb4877785df Graham Christensen committed Jun 5, 2012
Showing with 12 additions and 6 deletions.
  1. +12 −6 Net/IMAPProtocol.php
View
18 Net/IMAPProtocol.php
@@ -581,7 +581,8 @@ function _authDigestMD5($uid, $pwd, $cmdid)
return $error;
}
- if (PEAR::isError($args = $this->_recvLn())) {
+ $args = $this->_recvLn();
+ if ($args instanceOf PEAR_Error) {
return $args;
}
@@ -602,7 +603,8 @@ function _authDigestMD5($uid, $pwd, $cmdid)
return $error;
}
- if (PEAR::isError($args = $this->_recvLn())) {
+ $args = $this->_recvLn();
+ if ($args instanceOf PEAR_Error) {
return $args;
}
@@ -636,7 +638,8 @@ function _authCramMD5($uid, $pwd, $cmdid)
return $error;
}
- if (PEAR::isError($args = $this->_recvLn())) {
+ $args = $this->_recvLn();
+ if ($args instanceOf PEAR_Error) {
return $args;
}
@@ -678,7 +681,8 @@ function _authLOGIN($uid, $pwd, $cmdid)
return $error;
}
- if (PEAR::isError($args = $this->_recvLn())) {
+ $args = $this->_recvLn();
+ if ($args instanceOf PEAR_Error) {
return $args;
}
@@ -694,7 +698,8 @@ function _authLOGIN($uid, $pwd, $cmdid)
return $error;
}
- if (PEAR::isError($args = $this->_recvLn())) {
+ $args = $this->_recvLn();
+ if ($args instanceOf PEAR_Error) {
return $args;
}
@@ -767,7 +772,8 @@ function cmdLogout()
return new PEAR_Error('not connected!');
}
- if (PEAR::isError($args = $this->_genericCommand('LOGOUT'))) {
+ $args = $this->_genericCommand('LOGOUT');
+ if ($args instanceOf PEAR_Error) {
return $args;
}
if ($this->_socket->disconnect() instanceOf PEAR_Error) {

0 comments on commit ba4c048

Please sign in to comment.
Something went wrong with that request. Please try again.