From b497eca02c44c62e6e1bca32ddca1b296a0af05b Mon Sep 17 00:00:00 2001 From: Jota Date: Sat, 21 Aug 2021 13:22:21 -0300 Subject: [PATCH] Changed overlooked line --- modules/config.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/config.ts b/modules/config.ts index e46b5df..0d667b9 100644 --- a/modules/config.ts +++ b/modules/config.ts @@ -140,13 +140,8 @@ class Config { //Linux solution is untested const homedir = process.env.HOME; const steamPaths = [".steam/steam", ".local/share/steam"]; - for (const pathGroup of steamPaths) { - let existingPath = await getExistingPath(pathGroup["paths"]); - basedir = path.join(homedir, existingPath); - if (basedir != "") { - break; - } - } + let existingPath = await getExistingPath(steamPaths); + basedir = path.join(homedir, existingPath); } else { basedir = "";