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:
parent
c904990a84
commit
c1d9bda061
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user