Skip to content

Commit

Permalink
Fix: String.startsWith(..) can be rewritten using String.charAt(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmini committed May 23, 2019
1 parent c2bddfe commit a36eed5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public Report parse(final ReaderFactory readerFactory) throws ParsingException {
lines.map(String::trim)
.filter(line -> !line.isEmpty())
.filter(line -> !line.startsWith("//"))
.filter(line -> !line.startsWith("#"))
.filter(line -> line.charAt(0) != '#')
.map(line -> parseIssue(line, report))
.filter(Optional::isPresent)
.map(Optional::get)
Expand Down

0 comments on commit a36eed5

Please sign in to comment.