From a2a83ebd8499ab4490d380c9ab2314b0d7414fff Mon Sep 17 00:00:00 2001 From: 4n4n4s Date: Fri, 22 Sep 2023 11:23:02 +0000 Subject: [PATCH] Updated logic based on comment --- gog.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gog.js b/gog.js index 8978e8e..c3cb492 100644 --- a/gog.js +++ b/gog.js @@ -293,11 +293,7 @@ async function claimFreegames(){ function isClaimedUrl(url) { try { var status = db.data[user][url.split("/").filter((x) => !!x).pop()]["status"]; - if (status === "existed" || status === "claimed") { - return true; - } else { - return false; - } + return status === "existed" || status === "claimed"; } catch (error) { return false; }