Skip to content

Commit 5a46d71

Browse files
authored
Update UnifiedDiffOutputBuilder.php
see: 376cb25
1 parent d068eda commit 5a46d71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2_0/Output/UnifiedDiffOutputBuilder.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ private function writeChunk(
114114
if ($this->addLineNumbers) {
115115
\fwrite($output, '@@ -' . (1 + $fromStart));
116116

117-
if ($fromRange > 1) {
117+
if ($fromRange !== 1) {
118118
\fwrite($output, ',' . $fromRange);
119119
}
120120

121121
\fwrite($output, ' +' . (1 + $toStart));
122-
if ($toRange > 1) {
122+
if ($toRange !== 1) {
123123
\fwrite($output, ',' . $toRange);
124124
}
125125

0 commit comments

Comments
 (0)