Skip to content

Commit f213f33

Browse files
Removing unrelated changes
1 parent 2a10f9a commit f213f33

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

src/msdo-client.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -94,23 +94,6 @@ async function init() {
9494
}
9595
}
9696

97-
/**
98-
* Runs "guardian update" to ensure the Guardian CLI is updated.
99-
*/
100-
async function update() {
101-
console.log('Updating CLI...');
102-
try {
103-
let cliFilePath = getCliFilePath();
104-
let tool = tl.tool(cliFilePath).arg('update');
105-
await tool.exec();
106-
console.log('Update complete.');
107-
}
108-
catch (error) {
109-
console.log('Something went wrong while updating the CLI. Continuing...');
110-
tl.debug(error);
111-
}
112-
}
113-
11497
/**
11598
* Runs "guardian run" with the input CLI arguments
11699
* @param inputArgs - The CLI arguments to pass to "guardian run"
@@ -119,7 +102,6 @@ async function update() {
119102
export async function run(inputArgs: string[], successfulExitCodes: number[] = null, publish: boolean = true, publishArtifactName: string = null, telemetryEnvironment: string = 'azdevops'): Promise<void> {
120103
let tool = null;
121104
let debugDrop = common.parseBool(process.env.GDN_DEBUG_DROP);
122-
let prerel = common.parseBool(process.env.MSDO_PRERELEASE);
123105

124106
let sarifFile: string = path.join(process.env.BUILD_STAGINGDIRECTORY, '.gdn', 'msdo.sarif');
125107
tl.debug(`sarifFile = ${sarifFile}`);
@@ -144,10 +126,6 @@ export async function run(inputArgs: string[], successfulExitCodes: number[] = n
144126

145127
await setupEnvironment();
146128
await init();
147-
if (prerel) {
148-
await update();
149-
await init();
150-
}
151129

152130
let cliFilePath = getCliFilePath();
153131

0 commit comments

Comments
 (0)