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

Commit add34d7

Browse files
authored
make tslint happy again
1 parent 9d5e9a1 commit add34d7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/arduino/arduino.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export class ArduinoApp {
149149

150150
args.push("--pref", `build.path=${outputPath}`);
151151
arduinoChannel.info(`Please see the build logs in Output path: ${outputPath}`);
152-
} else if (VscodeSettings.getInstance().defaultOutputPath != "") {
152+
} else if (VscodeSettings.getInstance().defaultOutputPath !== "") {
153153
const outputPath = VscodeSettings.getInstance().defaultOutputPath;
154154
args.push("--pref", `build.path=${outputPath}`);
155155
arduinoChannel.info(`Please see the build logs in Output path: ${outputPath}`);
@@ -211,9 +211,10 @@ export class ArduinoApp {
211211
if (dc.output) {
212212
const outputPath = path.resolve(ArduinoWorkspace.rootPath, dc.output);
213213
args.push("--pref", `build.path=${outputPath}`);
214-
} else if (VscodeSettings.getInstance().defaultOutputPath != "") {
214+
} else if (VscodeSettings.getInstance().defaultOutputPath !== "") {
215215
const outputPath = VscodeSettings.getInstance().defaultOutputPath;
216216
args.push("--pref", `build.path=${outputPath}`);
217+
arduinoChannel.info(`Please see the build logs in Output path: ${outputPath}`);
217218
} else {
218219
const msg = "Output path is not specified. Unable to reuse previously compiled files. Upload could be slow. See README.";
219220
arduinoChannel.warning(msg);
@@ -276,7 +277,7 @@ export class ArduinoApp {
276277

277278
args.push("--pref", `build.path=${outputPath}`);
278279
arduinoChannel.info(`Please see the build logs in Output path: ${outputPath}`);
279-
} else if (VscodeSettings.getInstance().defaultOutputPath != "") {
280+
} else if (VscodeSettings.getInstance().defaultOutputPath !== "") {
280281
const outputPath = VscodeSettings.getInstance().defaultOutputPath;
281282
args.push("--pref", `build.path=${outputPath}`);
282283
arduinoChannel.info(`Please see the build logs in Output path: ${outputPath}`);
@@ -295,7 +296,6 @@ export class ArduinoApp {
295296
arduinoChannel.error(`Exit with code=${reason.code}${os.EOL}`);
296297
return false;
297298
}
298-
299299
}
300300

301301
// Add selected library path to the intellisense search path.

src/arduino/arduinoSettings.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ export class ArduinoSettings implements IArduinoSettings {
239239
private async tryGetDefaultOutputPath(): Promise<void> {
240240
const configValue = VscodeSettings.getInstance().defaultOutputPath;
241241
if (!configValue || !configValue.trim()) {
242-
//not set
243-
//return ""?
242+
// not set
243+
// return ""?
244244
} else {
245245
this._defaultOutputPath = configValue;
246246
}

0 commit comments

Comments
 (0)