[fix](chat) fix visibility when searching (#72)

This commit is contained in:
mainmain
2023-09-11 18:05:24 +08:00
committed by GitHub
parent a4fc11887c
commit eca92d2493
3 changed files with 13 additions and 13 deletions

View File

@@ -167,7 +167,7 @@ public class HanlpHelper {
public static void removeFromCustomDictionary(DictWord dictWord) {
log.info("dictWord:{}", dictWord);
CoreDictionary.Attribute attribute = getDynamicCustomDictionary().get(dictWord.getWord());
if (attribute != null) {
if (attribute == null) {
return;
}
log.info("get attribute:{}", attribute);