Skip to content

Commit 6606fb0

Browse files
Remove superfluous line-break
1 parent 574c8b6 commit 6606fb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Exception/UnintentionallyCoveredCodeException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
namespace SebastianBergmann\CodeCoverage;
1111

12+
use function rtrim;
1213
use RuntimeException;
1314

1415
final class UnintentionallyCoveredCodeException extends RuntimeException implements Exception
@@ -44,6 +45,6 @@ private function toString(): string
4445
$message .= '- ' . $unit . "\n";
4546
}
4647

47-
return $message;
48+
return rtrim($message);
4849
}
4950
}

tests/tests/Exception/UnintentionallyCoveredCodeExceptionTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public function testCanConstructWithNonEmptyArray(): void
4040
- foo
4141
- bar
4242
- baz
43-
4443
TXT;
4544

4645
$this->assertSame($expected, $exception->getMessage());

0 commit comments

Comments
 (0)