0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-19 17:02:13 +02:00

Fix the unrelated issue that CodeRabbit found

This commit is contained in:
Alexander01998 2024-07-18 21:07:26 +02:00
parent c904990a84
commit c1d9bda061

View File

@ -100,9 +100,10 @@ public enum GoogleTranslate
Pattern pattern = Pattern.compile(regex, Pattern.MULTILINE);
Matcher matcher = pattern.matcher(html);
matcher.find();
String match = matcher.group(1);
if(!matcher.find())
return null;
String match = matcher.group(1);
if(match == null || match.isEmpty())
return null;