Skip to content

Commit 1a72ba8

Browse files
committed
test: remove spurious null check in unit test
1 parent 2f5bce7 commit 1a72ba8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/system/Database/Live/PreparedQueryTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@ protected function tearDown(): void
4242
{
4343
parent::tearDown();
4444

45-
if ($this->query !== null) {
46-
try {
47-
$this->query->close();
48-
} catch (BadMethodCallException $e) {
49-
$this->query = null;
50-
}
45+
try {
46+
$this->query->close();
47+
} catch (BadMethodCallException $e) {
48+
$this->query = null;
5149
}
5250
}
5351

0 commit comments

Comments
 (0)