Skip to content

Commit 97d7c17

Browse files
committed
[runChecks.ts] remove unnecessary downcast
1 parent 7ece8b9 commit 97d7c17

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

eng/tools/lint-diff/src/runChecks.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ExecError, execNpmExec, isExecError } from "@azure-tools/specs-shared/exec";
1+
import { execNpmExec, isExecError } from "@azure-tools/specs-shared/exec";
22
import { debugLogger } from "@azure-tools/specs-shared/logger";
33
import { join } from "path";
44

@@ -77,16 +77,15 @@ export async function runChecks(
7777
throw error;
7878
}
7979

80-
const execError = error as ExecError;
8180
lintDiffResult = {
8281
autorestCommand,
8382
rootPath: path,
8483
readme: tags.readme,
8584
tag: tag ? tag : "",
8685
openApiType,
87-
error: execError,
88-
stdout: execError.stdout || "",
89-
stderr: execError.stderr || "",
86+
error,
87+
stdout: error.stdout || "",
88+
stderr: error.stderr || "",
9089
} as AutorestRunResult;
9190

9291
logAutorestExecutionErrors(lintDiffResult);

0 commit comments

Comments
 (0)