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

Commit dd308ac

Browse files
hlovdaladiazulay
authored andcommitted
Rename verifyResult to success
1 parent e4c13d0 commit dd308ac

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/arduino/arduino.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export class ArduinoApp {
256256

257257
arduinoChannel.show();
258258

259-
let verifyResult: boolean;
259+
let success = false;
260260
const compilerParserContext = makeCompilerParserContext(dc);
261261

262262
try {
@@ -266,22 +266,21 @@ export class ArduinoApp {
266266
undefined,
267267
compilerParserContext.callback);
268268
arduinoChannel.end(`Finished verifying sketch - ${dc.sketch}${os.EOL}`);
269-
verifyResult = true;
269+
success = true;
270270
} catch (reason) {
271271
const msg = reason.code ?
272272
`Exit with code=${reason.code}${os.EOL}` :
273273
reason.message ?
274274
reason.message :
275275
JSON.stringify(reason);
276276
arduinoChannel.error(msg);
277-
verifyResult = false;
278277
}
279278

280279
if (compilerParserContext.conclude) {
281280
compilerParserContext.conclude();
282281
}
283282

284-
return verifyResult;
283+
return success;
285284
}
286285

287286
public tryToUpdateIncludePaths() {

0 commit comments

Comments
 (0)