Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki authored Jan 22, 2022
1 parent bd7492c commit d9e40c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Kinds/K8sResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ public function exists(array $query = ['pretty' => 1]): bool
try {
$this->get($query);
} catch (KubernetesAPIException $e) {
if ($e->getCode() == 404) {
if ($e->getCode() === 404) {
return false;
}

throw $e;
}

Expand Down

0 comments on commit d9e40c5

Please sign in to comment.