Skip to content

Commit 1d3857c

Browse files
committed
chore: run lint
1 parent 8f8dec9 commit 1d3857c

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

src/components/content/ContentView.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,9 @@ const ContentView = ({
535535
hasMoreTracks &&
536536
!isLoadingMore &&
537537
tracks.length > 0 &&
538-
(contentType === "playlist" || contentType === "mix" || contentType === "liked-songs")
538+
(contentType === "playlist" ||
539+
contentType === "mix" ||
540+
contentType === "liked-songs")
539541
) {
540542
const timer = setTimeout(() => {
541543
loadMoreTracks();

src/hooks/useNocturned.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,8 @@ export const useBluetooth = () => {
13381338
}
13391339

13401340
const delayTime = Math.min(
1341-
RECONNECT_BASE_INTERVAL * Math.pow(2, reconnectAttemptsRef.current - 1),
1341+
RECONNECT_BASE_INTERVAL *
1342+
Math.pow(2, reconnectAttemptsRef.current - 1),
13421343
RECONNECT_MAX_INTERVAL,
13431344
);
13441345
reconnectTimeoutRef.current = setTimeout(() => {
@@ -1357,7 +1358,8 @@ export const useBluetooth = () => {
13571358
}
13581359

13591360
const delayTime = Math.min(
1360-
RECONNECT_BASE_INTERVAL * Math.pow(2, reconnectAttemptsRef.current - 1),
1361+
RECONNECT_BASE_INTERVAL *
1362+
Math.pow(2, reconnectAttemptsRef.current - 1),
13611363
RECONNECT_MAX_INTERVAL,
13621364
);
13631365
reconnectTimeoutRef.current = setTimeout(() => {

src/hooks/useSpotifyPlayerState.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ export function useSpotifyPlayerState(immediateLoad = false) {
151151
incomingTrackName &&
152152
currentTrackName &&
153153
incomingTrackName === currentTrackName &&
154-
(!incomingItemUri || !currentItemUri || incomingItemUri === currentItemUri);
154+
(!incomingItemUri ||
155+
!currentItemUri ||
156+
incomingItemUri === currentItemUri);
155157
const preservedBlobArtwork =
156158
hasBlobArtwork && isSameTrack ? currentBlobUrl : null;
157159

@@ -165,9 +167,7 @@ export function useSpotifyPlayerState(immediateLoad = false) {
165167
const prevTrackUri = prevPlayback?.item?.uri;
166168
const incomingTrackUri = data.item?.uri;
167169
const urisMatch =
168-
prevTrackUri &&
169-
incomingTrackUri &&
170-
prevTrackUri === incomingTrackUri;
170+
prevTrackUri && incomingTrackUri && prevTrackUri === incomingTrackUri;
171171
const shouldPreservePrevBlob =
172172
hasPrevBlobArtwork &&
173173
incomingTrackName &&
@@ -794,8 +794,7 @@ export function useSpotifyPlayerState(immediateLoad = false) {
794794
const elapsed = Date.now() - prevPlayback.timestamp;
795795
estimatedProgress += elapsed;
796796
}
797-
const duration =
798-
iap2Duration || prevPlayback.item?.duration_ms;
797+
const duration = iap2Duration || prevPlayback.item?.duration_ms;
799798
if (duration && duration > 0 && estimatedProgress > duration) {
800799
estimatedProgress = duration;
801800
}
@@ -1130,7 +1129,10 @@ export function useSpotifyPlayerState(immediateLoad = false) {
11301129
}
11311130
})
11321131
.catch((err) => {
1133-
console.error("Failed to fetch player state after artwork failure:", err);
1132+
console.error(
1133+
"Failed to fetch player state after artwork failure:",
1134+
err,
1135+
);
11341136
});
11351137
} else if (
11361138
data.type === "event" &&

0 commit comments

Comments
 (0)