Skip to content

Commit 19e479c

Browse files
committed
Removed unnecessary code
1 parent 734d496 commit 19e479c

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

liquidjava-verifier/src/test/java/liquidjava/utils/TestUtils.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,7 @@ public static List<Pair<String, Integer>> getExpectedErrorsFromFile(Path filePat
4747
Pattern p = Pattern.compile("//\\s*(.*?\\bError\\b)", Pattern.CASE_INSENSITIVE);
4848
Matcher m = p.matcher(line);
4949
if (m.find()) {
50-
String comment = m.group(1).trim();
51-
int dotIdx = comment.indexOf(":");
52-
if (dotIdx != -1) {
53-
comment = comment.substring(0, dotIdx).trim();
54-
}
55-
expectedErrors.add(new Pair<>(comment, lineNumber));
50+
expectedErrors.add(new Pair<>(m.group(1).trim(), lineNumber));
5651
}
5752
}
5853
} catch (IOException e) {

0 commit comments

Comments
 (0)