Skip to content

Commit

Permalink
Remove useless checkstyle off
Browse files Browse the repository at this point in the history
  • Loading branch information
litetex committed Aug 26, 2022
1 parent 95a8b8b commit 8b7cb62
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -680,18 +680,10 @@ private static void extractClientVersionAndKeyFromHtmlSearchResultsPage()
} catch (final Parser.RegexException ignored) {
}

if (isNullOrEmpty(key)) {
throw new ParsingException(
// CHECKSTYLE:OFF
"Could not extract YouTube WEB InnerTube API key from HTML search results page");
// CHECKSTYLE:ON
}

if (clientVersion == null) {
throw new ParsingException(
// CHECKSTYLE:OFF
"Could not extract YouTube WEB InnerTube client version from HTML search results page");
// CHECKSTYLE:ON
if (isNullOrEmpty(key) || clientVersion == null) {
throw new ParsingException("Could not extract YouTube WEB InnerTube "
+ (isNullOrEmpty(key) ? "API key" : "client version")
+ " from HTML search results page");
}

keyAndVersionExtracted = true;
Expand Down

0 comments on commit 8b7cb62

Please sign in to comment.