Skip to content

Commit 2af48be

Browse files
committed
csf
1 parent 5e1823d commit 2af48be

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Core/GTATunesPlayer.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,11 @@ export class Player extends EventEmitter<PlayerEventMap> {
734734
this.locked = true;
735735
this.lockedAt ??= unix();
736736

737-
if (lockedAt !== null && isLocked && (unix() - lockedAt > 20)) {
738-
gtaTunesLog('PLAYER', `Player lock in guild ${p.magenta(this.guild.name)} (${p.magenta(this.guild.id)}) has expired, forcing unlock.`);
737+
if (lockedAt !== null && isLocked && unix() - lockedAt > 20) {
738+
gtaTunesLog(
739+
'PLAYER',
740+
`Player lock in guild ${p.magenta(this.guild.name)} (${p.magenta(this.guild.id)}) has expired, forcing unlock.`
741+
);
739742
isLocked = false;
740743
this.lockedAt = null;
741744
}
@@ -766,7 +769,7 @@ export class Player extends EventEmitter<PlayerEventMap> {
766769
);
767770
this.locked = false;
768771
this.lockedAt = null;
769-
}
772+
};
770773

771774
try {
772775
await action();

src/Core/GTATunesSDK.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ export default class GTATunesSDK {
3333
init?: RequestInit
3434
): Promise<Response> {
3535
const loggedUrl = `${uri}?${qs(query)}`;
36-
gtaTunesLog(
37-
'GTAT',
38-
`[${p.dim('...')}] ${loggedUrl}`
39-
);
36+
gtaTunesLog('GTAT', `[${p.dim('...')}] ${loggedUrl}`);
4037

4138
let res: Response;
4239

0 commit comments

Comments
 (0)