Effects.java: remove redundant check. When in the else part, the lastRule already is guaranteed to not end on a dot

This commit is contained in:
Bruno Chevalier 2020-08-31 13:54:09 +02:00
parent 9b89eecab5
commit 21c80a3caa

View file

@ -72,7 +72,7 @@ public class Effects extends ArrayList<Effect> {
|| lastRule.endsWith(".")) {
endString = " ";
// if lastRule does not have appropriate punctuation, add the default ". "
} else if (!lastRule.endsWith(".") && !lastRule.endsWith("<br>")) {
} else if (!lastRule.endsWith("<br>")) {
endString = ". ";
}
if (nextRule.length() > 3) {