Skip to content

Commit eb99696

Browse files
committed
Unused if statement removed
1 parent 026da03 commit eb99696

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/IMAP/Client.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,7 @@ public function checkConnection() {
185185
* @throws ConnectionFailedException
186186
*/
187187
public function connect($attempts = 3) {
188-
if ($this->isConnected()) {
189-
$this->disconnect();
190-
}
188+
$this->disconnect();
191189

192190
try {
193191
$this->connection = imap_open(

0 commit comments

Comments
 (0)