Skip to content

Commit ced2a0e

Browse files
committed
lint
1 parent 7967c6c commit ced2a0e

File tree

1 file changed

+3
-3
lines changed
  • packages/@apphosting/adapter-angular/src

1 file changed

+3
-3
lines changed

packages/@apphosting/adapter-angular/src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ export async function checkBuildConditions(opts: BuildOptions): Promise<void> {
9494
logger.warn("failed to determine angular builder from the workspace api: ", error);
9595
try {
9696
const root = process.cwd();
97-
const angularJSON = JSON.parse(readFileSync(join(root, "angular.json"))).toString();
97+
const angularJSON = JSON.parse(readFileSync(join(root, "angular.json")).toString());
9898
const apps: string[] = [];
9999
Object.keys(angularJSON.projects).forEach((projectName) => {
100100
const project = angularJSON.projects[projectName];
101101
if (project["projectType"] === "application") apps.push(projectName);
102102
});
103103
const project = apps[0];
104-
if (apps.length > 1 || !project) throw new Error(
105-
"Unable to determine the application to deploy");
104+
if (apps.length > 1 || !project)
105+
throw new Error("Unable to determine the application to deploy");
106106
angularBuilder = angularJSON.projects[project].architect.build.builder;
107107
} catch (error) {
108108
logger.warn("failed to determine angular builder from parsing angular.json: ", error);

0 commit comments

Comments
 (0)