Fixed redundant method call.

This commit is contained in:
Erik C. Thauvin 2020-03-25 00:40:15 -07:00
parent a435f0be49
commit e0d1919808

View file

@ -978,8 +978,9 @@ public class Mobibot extends PircBot {
if (!tagsKeywords.isEmpty()) {
for (final String match : tagsKeywords) {
if (title.matches("(?i).*\\b" + match.trim() + "\\b.*")) {
tags.append(' ').append(match.trim());
final String m = match.trim();
if (title.matches("(?i).*\\b" + m + "\\b.*")) {
tags.append(' ').append(m);
}
}
}