Skip to content

Commit e85725e

Browse files
committed
Fix style
1 parent 728e334 commit e85725e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

backend/instance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export class Instances {
9292
if (this.instances.has(port)) {
9393
throw new Error(`Already have Webxdc instance at port: ${port}`);
9494
}
95-
this.currentPort = port
95+
this.currentPort = port;
9696

9797
const instanceUrl = getInstanceUrl(port);
9898

backend/run.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ export type Inject = {
1313
getIndexHtml: () => string;
1414
};
1515

16-
async function actualRun(appInfo: AppInfo, options: Options, inject: Inject): Promise<void> {
16+
async function actualRun(
17+
appInfo: AppInfo,
18+
options: Options,
19+
inject: Inject,
20+
): Promise<void> {
1721
const { injectFrontend, injectSim, getIndexHtml } = inject;
1822
options.basePort = await detectPort(options.basePort);
1923
const instances = new Instances(appInfo, injectSim, options);
@@ -39,7 +43,11 @@ async function actualRun(appInfo: AppInfo, options: Options, inject: Inject): Pr
3943
open("http://localhost:" + options.basePort);
4044
}
4145

42-
export async function run(locationStr: string, options: Options, inject: Inject): Promise<void> {
46+
export async function run(
47+
locationStr: string,
48+
options: Options,
49+
inject: Inject,
50+
): Promise<void> {
4351
let location: Location;
4452
try {
4553
location = getLocation(locationStr);
@@ -60,7 +68,7 @@ export async function run(locationStr: string, options: Options, inject: Inject)
6068
console.log("Starting webxdc project in:", locationStr);
6169

6270
try {
63-
const appInfo = await getAppInfo(location)
71+
const appInfo = await getAppInfo(location);
6472
await actualRun(appInfo, options, inject);
6573
} catch (e) {
6674
if (e instanceof AppInfoError) {

0 commit comments

Comments
 (0)