Skip to content

Commit f23ab98

Browse files
Fix 'Enforce that an expression gets used' errors
1 parent 0137fe4 commit f23ab98

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Parser.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@
77

88
function parse(string $pathToFile1, string $pathToFile2, string $format): void
99
{
10-
line('%s', genDiff($pathToFile1, $pathToFile2, $format));
10+
$resultString = genDiff($pathToFile1, $pathToFile2, $format);
11+
12+
if ($resultString) {
13+
line('%s', $resultString);
14+
} else {
15+
line('');
16+
}
1117
}

0 commit comments

Comments
 (0)