Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95199ca2 authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

use and for error code check

parent 3d60e4dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ class BaseEcloudAccountCreator implements AccountCreator

        $result = curlRequest('GET', $url, $headers);
        $statusCode = $result->statusCode;
        if ($statusCode !== 200 || $statusCode !== 404) {
        if ($statusCode !== 200 && $statusCode !== 404) {
            throw new Error("Error with request to check if alias exists, status code : " . $statusCode);
        }
        return $statusCode === 200;