From 3a1afe99b3448b729f1665031df2ea78a2d6e7de Mon Sep 17 00:00:00 2001 From: huangjx Date: Thu, 2 Jun 2022 17:50:21 +0800 Subject: [PATCH] removed unneeded parameters --- lib/Tools/Helper.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Tools/Helper.php b/lib/Tools/Helper.php index 5546462..3303277 100644 --- a/lib/Tools/Helper.php +++ b/lib/Tools/Helper.php @@ -400,12 +400,12 @@ class Helper return ""; } - public static function getRealDownloadDir($uid = null): string + public static function getRealDownloadDir(): string { $dlDir = self::getDownloadDir(); return self::getLocalFolder($dlDir); } - public static function getRealTorrentsDir($uid = null): string + public static function getRealTorrentsDir(): string { $dir = self::getSettings('ncd_torrents_dir', "/Torrents"); return self::getLocalFolder($dir); @@ -450,8 +450,8 @@ class Helper $options = []; $uid = $uid ?? self::getUID(); $settings = self::newSettings($uid); - $realDownloadDir = Helper::getRealDownloadDir($uid); - $torrentsDir = Helper::getRealTorrentsDir($uid); + $realDownloadDir = Helper::getRealDownloadDir(); + $torrentsDir = Helper::getRealTorrentsDir(); $appPath = self::getAppPath(); $dataDir = self::getDataDir(); $aria2_dir = $dataDir . "/aria2";