Skip to content

Commit 64529ab

Browse files
committed
style: dprint
1 parent 8827e8e commit 64529ab

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/commands/login/oauth2/callbackServer.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as http from "http";
21
import * as fs from "fs/promises";
2+
import * as http from "http";
33
import * as path from "path";
44
import * as vscode from "vscode";
55
import { GlobalArgs } from "../../../globalArgs";
@@ -22,8 +22,7 @@ const createServer = (
2222
}).listen(port, () =>
2323
console.info(
2424
`Listening for OAuth callback on http://127.0.0.1:${port}/callback`,
25-
),
26-
);
25+
));
2726
};
2827

2928
export const getAvailablePort = async (): Promise<number> => {
@@ -39,9 +38,7 @@ export const getAvailablePort = async (): Promise<number> => {
3938
}
4039
});
4140

42-
tempServer.on("error", (error: any) =>
43-
reject(new Error(`Error finding available port: ${error.message}`)),
44-
);
41+
tempServer.on("error", (error: any) => reject(new Error(`Error finding available port: ${error.message}`)));
4542
});
4643
};
4744

src/commands/login/oauth2/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import * as vscode from "vscode";
66
import { isUserConnected } from "../../../credentials";
77
import { base64UrlSafeEncode } from "../../utils";
88
import { clientId, createCredentials } from "../createCredentials";
9-
import {
10-
getAvailablePort,
11-
startLocalServerForCallback,
12-
} from "./callbackServer";
9+
import { getAvailablePort, startLocalServerForCallback } from "./callbackServer";
1310

1411
function authorizeUrl(clientId: string, redirectUri: URL, state: string): URL {
1512
const baseUrl = new URL("/oauth2/authorize", GlobalArgs.aqoraUrl());

0 commit comments

Comments
 (0)