Skip to content

Commit

Permalink
small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetaa committed Feb 22, 2019
1 parent 5b83f59 commit 34ebfcc
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,12 @@ private List<String> informalWordSuggestions(String s) {
}

private String getApostrophe(String input) {
String apostrophe = null;
if (input.indexOf('’') > 0) {
apostrophe = "’";
return "’";
} else if (input.indexOf('\'') > 0) {
apostrophe = "'";
return "'";
}
return apostrophe;
return null;
}

private String removePunctuation(String s) {
Expand Down

0 comments on commit 34ebfcc

Please sign in to comment.