Skip to content

Commit

Permalink
少了 return
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
paulzzh and coderabbitai[bot] authored Jan 8, 2025
1 parent 8197ff6 commit 8e50b9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public long size() {
final IPAddress ip = IPAddressUtil.getIPAddress(content);
if (ip == null) return new MatchResult(MatchResultEnum.DEFAULT, new TranslationComponent("IP is null"));
if (ips == null) {
new MatchResult(MatchResultEnum.DEFAULT, new TranslationComponent("IPs set is null"));
return new MatchResult(MatchResultEnum.DEFAULT, new TranslationComponent("IPs set is null"));
}
if (ips.elementContains(ip)) {
return new MatchResult(MatchResultEnum.TRUE, new TranslationComponent(ips.get(ip)));
Expand Down

0 comments on commit 8e50b9d

Please sign in to comment.