Skip to content

Commit

Permalink
removing unnecessary toLowerCase to optimize it
Browse files Browse the repository at this point in the history
  • Loading branch information
smdb21 committed Aug 18, 2020
1 parent 391694b commit b8fade7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,13 @@ protected void process(boolean checkFormat) throws IOException {
if (numLine == 3) {
fastaPath = line.trim();
}
if (line.toLowerCase().startsWith(SEQUEST.toLowerCase())) {
if (line.length() >= SEQUEST.length()
&& SEQUEST.equalsIgnoreCase(line.substring(0, SEQUEST.length()))) {
searchEngineLine = numLine;
searchEngines.add(SEQUEST);
setSearchEngineVersion(line.split(" ")[1]);
} else if (line.toLowerCase().startsWith(PROLUCID.toLowerCase())) {
} else if (line.length() >= PROLUCID.length()
&& PROLUCID.equalsIgnoreCase(line.substring(0, PROLUCID.length()))) {
searchEngineLine = numLine;
searchEngines.add(PROLUCID);
setSearchEngineVersion(line.split(" ")[1]);
Expand Down

0 comments on commit b8fade7

Please sign in to comment.