mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-11-18 01:49:32 +01:00
refactor: use containsAny
helper method (#27)
This commit is contained in:
parent
9b1dce42ed
commit
d9268bc0fa
@ -112,7 +112,7 @@ public class LithoAdRemoval {
|
||||
|
||||
bufferBlockList.add("YouTube Movies");
|
||||
}
|
||||
if ((value.contains("home_video_with_context") || value.contains("related_video_with_context")) &&
|
||||
if (containsAny(value, "home_video_with_context", "related_video_with_context") &&
|
||||
bufferBlockList.stream().anyMatch(StandardCharsets.UTF_8.decode(buffer).toString()::contains)
|
||||
) return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user