Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
snehapar9 committed Sep 24, 2023
1 parent 2a5a4fb commit 143c5a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4838,7 +4838,6 @@ var ContainerAppHelper = /** @class */ (function () {
return [4 /*yield*/, exec.exec("az", command.split(' '))];
case 2:
exitCode = _a.sent();
// const executionResult = await new Utility().executeAndthrowIfError(`az`, command.split(' '));
return [2 /*return*/, exitCode === 0];
case 3:
err_6 = _a.sent();
Expand Down Expand Up @@ -4926,6 +4925,7 @@ var ContainerAppHelper = /** @class */ (function () {
return [4 /*yield*/, new Utility_1.Utility().executeAndthrowIfError("az", args)];
case 2:
executionResult = _a.sent();
// If successful, strip out double quotes, spaces and parentheses from the first location returned
return [2 /*return*/, !executionResult.stderr ? executionResult.stdout.toLowerCase().replace(/["() ]/g, "").trim() : "eastus2"];
case 3:
err_9 = _a.sent();
Expand Down
3 changes: 1 addition & 2 deletions src/ContainerAppHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,8 @@ export class ContainerAppHelper {
public async doesContainerAppExist(containerAppName: string, resourceGroup: string): Promise<boolean> {
core.debug(`Attempting to determine if Container App with name "${containerAppName}" exists in resource group "${resourceGroup}"`);
try {
const command = `containerapp show -n ${containerAppName} -g ${resourceGroup} -o none`;
let command = `containerapp show -n ${containerAppName} -g ${resourceGroup} -o none`;
const exitCode = await exec.exec(`az`, command.split(' '));
// const executionResult = await new Utility().executeAndthrowIfError(`az`, command.split(' '));
return exitCode === 0;
} catch (err) {
core.warning(err.message);
Expand Down

0 comments on commit 143c5a7

Please sign in to comment.