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.");