Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphtheninja committed Feb 28, 2025
1 parent 728e334 commit e85725e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class Instances {
if (this.instances.has(port)) {
throw new Error(`Already have Webxdc instance at port: ${port}`);
}
this.currentPort = port
this.currentPort = port;

const instanceUrl = getInstanceUrl(port);

Expand Down
14 changes: 11 additions & 3 deletions backend/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export type Inject = {
getIndexHtml: () => string;
};

async function actualRun(appInfo: AppInfo, options: Options, inject: Inject): Promise<void> {
async function actualRun(
appInfo: AppInfo,
options: Options,
inject: Inject,
): Promise<void> {
const { injectFrontend, injectSim, getIndexHtml } = inject;
options.basePort = await detectPort(options.basePort);
const instances = new Instances(appInfo, injectSim, options);
Expand All @@ -39,7 +43,11 @@ async function actualRun(appInfo: AppInfo, options: Options, inject: Inject): Pr
open("http://localhost:" + options.basePort);
}

export async function run(locationStr: string, options: Options, inject: Inject): Promise<void> {
export async function run(
locationStr: string,
options: Options,
inject: Inject,
): Promise<void> {
let location: Location;
try {
location = getLocation(locationStr);
Expand All @@ -60,7 +68,7 @@ export async function run(locationStr: string, options: Options, inject: Inject)
console.log("Starting webxdc project in:", locationStr);

try {
const appInfo = await getAppInfo(location)
const appInfo = await getAppInfo(location);
await actualRun(appInfo, options, inject);
} catch (e) {
if (e instanceof AppInfoError) {
Expand Down

0 comments on commit e85725e

Please # to comment.