From f7adeeff902a17f1b55bbd59a27e8115cb0126c8 Mon Sep 17 00:00:00 2001 From: Stypox Date: Sun, 26 Jan 2025 16:09:22 +0100 Subject: [PATCH] Fix checkstyle --- .../youtube/YoutubeThrottlingParameterUtils.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java index b25d890264..f7a9bbbc58 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java @@ -234,10 +234,11 @@ private static String validateFunction(@Nonnull final String function) { } /** - * Removes an early return statement from the code of the throttling parameter deobfuscation function. + * Removes an early return statement from the code of the throttling parameter deobfuscation + * function. * - *

In newer version of the player code the function contains a check for something defined outside of the function. - * If that was not found it will return early. + *

In newer version of the player code the function contains a check for something defined + * outside of the function. If that was not found it will return early. * *

The check can look like this (JS):
* if(typeof RUQ==="undefined")return p; @@ -247,7 +248,8 @@ private static String validateFunction(@Nonnull final String function) { * For that reason this check and return statement needs to be removed. * * @param function the original throttling parameter deobfuscation function code - * @return the throttling parameter deobfuscation function code with the early return statement removed + * @return the throttling parameter deobfuscation function code with the early return statement + * removed */ @Nonnull private static String fixupFunction(@Nonnull final String function)