Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit fc69bbd

Browse files
committed
Fixed minor lint issues
1 parent d1c7821 commit fc69bbd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/App.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
function getCurrentPageFromSearchParams(
2323
params: URLSearchParams
2424
): CurrentPage {
25-
if (searchParams.has("about")) {
25+
if (params.has("about")) {
2626
return CurrentPage.About;
27-
} else if (searchParams.has("credits")) {
27+
} else if (params.has("credits")) {
2828
return CurrentPage.Credits;
2929
} else {
3030
return CurrentPage.Episode;
3131
}
3232
}
3333
34-
function getEpisodeFromSearchKeys(keys) {
34+
function getEpisodeFromSearchKeys(keys: string[]) {
3535
const episodeId = keys.find(getEpisodeById);
3636
return getEpisodeById(episodeId) ?? getLatestEpisode();
3737
}

src/AudioPlayer.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
}
3636
37-
function onloadedmetadata(e: Event) {
37+
function onloadedmetadata() {
3838
state = PlayState.Stopped;
3939
updateTimeString();
4040
}
@@ -75,7 +75,7 @@
7575
audio.currentTime = 0;
7676
}
7777
78-
function seek(deltaSeconds) {
78+
function seek(deltaSeconds: number) {
7979
if (state !== PlayState.Playing && state !== PlayState.Paused) {
8080
return;
8181
}

src/libs/episodes-repo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@ const episodeRawDatas: EpisodeRawData[] = [
16451645
},
16461646
];
16471647

1648-
const episodeDatas: EpisodeData[] = episodeRawDatas.map((o, i) => ({
1648+
const episodeDatas: EpisodeData[] = episodeRawDatas.map((o) => ({
16491649
...o,
16501650
fileRelUrl: "/audio/" + o.fileName,
16511651
}));

0 commit comments

Comments
 (0)