Skip to content

Commit

Permalink
Updated logic based on comment
Browse files Browse the repository at this point in the history
  • Loading branch information
4n4n4s committed Sep 22, 2023
1 parent 804ecf9 commit a2a83eb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a2a83eb

Please sign in to comment.