From 517dbc7be26d3c3c20b992533ffe525b069cd84c Mon Sep 17 00:00:00 2001 From: KoalaBear Date: Tue, 21 Mar 2023 13:05:35 +0100 Subject: [PATCH] - Shortcut error message --- .../Site/GDIndex/BhadooIndexParser.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/OpenDirectoryDownloader/Site/GDIndex/BhadooIndexParser.cs b/src/OpenDirectoryDownloader/Site/GDIndex/BhadooIndexParser.cs index 0bb00d63..db07dbfa 100644 --- a/src/OpenDirectoryDownloader/Site/GDIndex/BhadooIndexParser.cs +++ b/src/OpenDirectoryDownloader/Site/GDIndex/BhadooIndexParser.cs @@ -115,12 +115,7 @@ private static async Task DecodeResponse(IHtmlDocument htmlDocument, Htt s.Source?.Contains("app.min.js") == true || s.Source?.Contains("app.obf.js") == true || s.Source?.Contains("app.obf.min.js") == true - ); - - if (appJsScript is null) - { - throw new Exception("Couldn't find the right JavaScript files"); - } + ) ?? throw new Exception("Couldn't find the right JavaScript files"); Obfuscated = appJsScript.Source.Contains("obf.");