Skip to content

Commit a695dee

Browse files
committed
1 parent 22bd347 commit a695dee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/difflib/DiffUtils.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ public static Patch<String> diffInline(String original, String revised) throws D
133133
}
134134

135135
private static List<String> compressLines(List<String> lines, String delimiter) {
136+
if (lines.isEmpty()) {
137+
return Collections.emptyList();
138+
}
136139
return Collections.singletonList(lines.stream().collect(joining(delimiter)));
137140
}
138141

0 commit comments

Comments
 (0)