refactor: use containsAny helper method (#27)

This commit is contained in:
OxrxL 2022-06-27 23:12:28 +02:00 committed by GitHub
parent 9b1dce42ed
commit d9268bc0fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;