Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Rename verifyResult to success
Browse files Browse the repository at this point in the history
  • Loading branch information
hlovdal authored and adiazulay committed Jan 19, 2021
1 parent e4c13d0 commit dd308ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/arduino/arduino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export class ArduinoApp {

arduinoChannel.show();

let verifyResult: boolean;
let success = false;
const compilerParserContext = makeCompilerParserContext(dc);

try {
Expand All @@ -266,22 +266,21 @@ export class ArduinoApp {
undefined,
compilerParserContext.callback);
arduinoChannel.end(`Finished verifying sketch - ${dc.sketch}${os.EOL}`);
verifyResult = true;
success = true;
} catch (reason) {
const msg = reason.code ?
`Exit with code=${reason.code}${os.EOL}` :
reason.message ?
reason.message :
JSON.stringify(reason);
arduinoChannel.error(msg);
verifyResult = false;
}

if (compilerParserContext.conclude) {
compilerParserContext.conclude();
}

return verifyResult;
return success;
}

public tryToUpdateIncludePaths() {
Expand Down

0 comments on commit dd308ac

Please sign in to comment.