mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
feat: use strict comparison
This commit is contained in:
parent
07e104ea01
commit
ea1d55e82b
1 changed files with 2 additions and 2 deletions
|
|
@ -172,7 +172,7 @@ class Executor
|
|||
switch (true) {
|
||||
case $status < 400:
|
||||
return $response['body'];
|
||||
case $status == 404:
|
||||
case $status === 404:
|
||||
$response = $this->createRuntime(
|
||||
deploymentId: $deploymentId,
|
||||
projectId: $projectId,
|
||||
|
|
@ -186,7 +186,7 @@ class Executor
|
|||
$response = $this->call(self::METHOD_POST, $route, $headers, $params, true, $requestTimeout);
|
||||
$status = $response['headers']['status-code'];
|
||||
break;
|
||||
case $status == 406:
|
||||
case $status === 406:
|
||||
$response = $this->call(self::METHOD_POST, $route, $headers, $params, true, $requestTimeout);
|
||||
$status = $response['headers']['status-code'];
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue