Skip to content

Commit 1397441

Browse files
committed
Fix format
1 parent 0fcdff1 commit 1397441

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/util/versionUtils.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,19 @@ const createProjectVersionsValue = (
2626
ttl: number = 5 * 60 * 1000
2727
): ExpiringValue<string[]> => {
2828
return new ExpiringValue(ttl, async () => {
29-
const result = await fetch(`https://api.papermc.io/v2/projects/${project}`).then((r) => r.json());
29+
const result = await fetch(`https://api.papermc.io/v2/projects/${project}`).then((r) =>
30+
r.json()
31+
);
3032

3133
return result.versions;
3234
});
3335
};
3436

3537
const createUserdevVersionsValue = (ttl: number = 5 * 60 * 1000): ExpiringValue<string[]> => {
3638
return new ExpiringValue(ttl, async () => {
37-
const json = await fetch("https://api.github.com/repos/PaperMC/paperweight/tags").then((r) => r.json());
39+
const json = await fetch("https://api.github.com/repos/PaperMC/paperweight/tags").then((r) =>
40+
r.json()
41+
);
3842

3943
return json.map((e) => e.name.substring(1)).reverse();
4044
});

0 commit comments

Comments
 (0)