Skip to content

Commit 61e5ea3

Browse files
author
John McCambridge
committed
Add typedef for resolve
1 parent 69fd487 commit 61e5ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/server/src/updater.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const compareVersions = (a: string, b: string): number | undefined => {
2121
};
2222

2323
export const getRecentRelease = (): Promise<any> => {
24-
return new Promise<string>((resolve, rej) => {
24+
return new Promise<string>((resolve):void => {
2525
const options = {
2626
host: "api.github.com",
2727
path: "/repos/codercom/code-server/releases/latest",

0 commit comments

Comments
 (0)