Skip to content

Commit 31a8eeb

Browse files
committed
Removed redundant try/catch.
Leaving this to phpunit to catch.
1 parent 1a10dd2 commit 31a8eeb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Tests/GravityTest.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@ public function testGravity($gravity): void
1818
{
1919
$gravity = new Gravity($gravity);
2020

21-
try {
22-
$validatedGravity = $gravity->validate();
23-
} catch (\Exception $e) {
24-
static::fail($e->getMessage());
25-
26-
return;
27-
}
21+
$validatedGravity = $gravity->validate();
2822

2923
static::assertIsString($validatedGravity);
3024
static::assertNotEmpty($validatedGravity);

0 commit comments

Comments
 (0)