From 626f73ccb821f9d806ee3cd2ee260ace6015d0da Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Sat, 2 Sep 2023 17:27:44 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Removed=20extra=20function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/config.py b/src/config.py index f100513..f09f68c 100644 --- a/src/config.py +++ b/src/config.py @@ -4,6 +4,8 @@ from typing import List, Self from environs import Env +from src.utils import default_build + default_cli = "https://github.com/revanced/revanced-cli/releases/latest" default_patches = "https://github.com/revanced/revanced-patches/releases/latest" default_patches_json = default_patches @@ -31,13 +33,4 @@ class RevancedConfig(object): self.extra_download_files: List[str] = env.list("EXTRA_FILES", []) self.apk_editor = "apkeditor-output.jar" self.extra_download_files.append("https://github.com/REAndroid/APKEditor@apkeditor.jar") - self._fetch_or_default(env) - - def _fetch_or_default(self: Self, env: Env) -> None: - """Get config from env or use default.""" - from src.utils import default_build - - self.apps = env.list( - "PATCH_APPS", - default_build, - ) + self.apps = env.list("PATCH_APPS", default_build)