Skip to content

Commit 68465b2

Browse files
gechotoStypox
authored andcommitted
fix formatting
1 parent 56595bd commit 68465b2

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeThrottlingParameterUtils.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ final class YoutubeThrottlingParameterUtils {
130130
"=\\s*function\\s*\\(\\s*([^)]*)\\s*\\)";
131131

132132
private static final String EARLY_RETURN_REGEX =
133-
";\\s*if\\s*\\(\\s*typeof\\s+" + MULTIPLE_CHARS_REGEX + "+\\s*===?\\s*([\"'])undefined\\1\\s*\\)\\s*return\\s+";
133+
";\\s*if\\s*\\(\\s*typeof\\s+" + MULTIPLE_CHARS_REGEX
134+
+ "+\\s*===?\\s*([\"'])undefined\\1\\s*\\)\\s*return\\s+";
134135

135136
private YoutubeThrottlingParameterUtils() {
136137
}
@@ -206,7 +207,7 @@ static String getThrottlingParameterFromStreamingUrl(@Nonnull final String strea
206207
// If the throttling parameter could not be parsed from the URL, it means that there is
207208
// no throttling parameter
208209
// Return null in this case
209-
return null;
210+
return null;
210211
}
211212
}
212213

@@ -240,7 +241,9 @@ private static String validateFunction(@Nonnull final String function) {
240241
@Nonnull
241242
private static String fixupFunction(@Nonnull final String function)
242243
throws Parser.RegexException {
243-
final String firstArgName = Parser.matchGroup1(FUNCTION_ARGUMENTS_REGEX, function).split(",")[0].trim();
244+
final String firstArgName = Parser
245+
.matchGroup1(FUNCTION_ARGUMENTS_REGEX, function)
246+
.split(",")[0].trim();
244247
final Pattern earlyReturnPattern = Pattern.compile(
245248
EARLY_RETURN_REGEX + firstArgName + ";",
246249
Pattern.DOTALL);

0 commit comments

Comments
 (0)