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

Commit 5daa2b1

Browse files
hlovdaladiazulay
authored andcommitted
Add missing return values
1 parent 57f4aa4 commit 5daa2b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/arduino/arduino.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ export class ArduinoApp {
211211
const dc = DeviceContext.getInstance();
212212
const boardDescriptor = this.getBoardBuildString();
213213
if (!boardDescriptor) {
214-
return;
214+
return false;
215215
}
216216

217217
if (!ArduinoWorkspace.rootPath) {
218218
vscode.window.showWarningMessage("Cannot find the sketch file.");
219-
return;
219+
return false;
220220
}
221221

222222
if (!dc.sketch || !util.fileExistsSync(path.join(ArduinoWorkspace.rootPath, dc.sketch))) {
@@ -249,7 +249,7 @@ export class ArduinoApp {
249249
const dirPath = path.dirname(outputPath);
250250
if (!util.directoryExistsSync(dirPath)) {
251251
Logger.notifyUserError("InvalidOutPutPath", new Error(constants.messages.INVALID_OUTPUT_PATH + outputPath));
252-
return;
252+
return false;
253253
}
254254

255255
if (this.useArduinoCli()) {

0 commit comments

Comments
 (0)