Skip to content

Commit

Permalink
remove unnecessary contains
Browse files Browse the repository at this point in the history
  • Loading branch information
tschechlovdev committed Jul 26, 2016
1 parent 053be19 commit 436f283
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public ParserResult importDatabase(BufferedReader reader) throws IOException {
}

private boolean checkLineValidity(String line) {
return (line.length() >= 5) ? line.contains("-") && (line.charAt(4) == '-') : false;
return (line.length() >= 5) ? (line.charAt(4) == '-') : false;
}

private String addSourceType(String value, String type) {
Expand Down

0 comments on commit 436f283

Please sign in to comment.