Skip to content

Commit

Permalink
🔨 typescript said "redundant double negation" - ok
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Jul 18, 2024
1 parent c6d1c5b commit d6583e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/classes/Friends.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class Friends {
).getSteamID64()
};

if (!!this.bot.manager.apiKey) params.key = this.bot.manager.apiKey;
if (this.bot.manager.apiKey) params.key = this.bot.manager.apiKey;
else params.access_token = this.bot.manager.accessToken;

apiRequest<GetBadges>({
Expand Down
2 changes: 1 addition & 1 deletion src/classes/TF2Inventory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class TF2Inventory {
return new Promise((resolve, reject) => {
const params: SteamRequestParams = { steamid: this.getSteamID.toString() };

if (!!this.manager.apiKey) params.key = this.manager.apiKey;
if (this.manager.apiKey) params.key = this.manager.apiKey;
else params.access_token = this.manager.accessToken;

apiRequest<GetPlayerItems>({
Expand Down

0 comments on commit d6583e2

Please sign in to comment.