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

Commit a6968e0

Browse files
hlovdaladiazulay
authored andcommitted
Introduce verbose variable
1 parent 3879639 commit a6968e0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/arduino/arduino.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ export class ArduinoApp {
181181
return;
182182
}
183183

184-
if (VscodeSettings.getInstance().logLevel === "verbose") {
184+
const verbose = VscodeSettings.getInstance().logLevel === "verbose";
185+
if (verbose) {
185186
args.push("--verbose");
186187
}
187188
if (dc.output && compile) {
@@ -252,7 +253,8 @@ export class ArduinoApp {
252253
}
253254

254255
args.push(appPath);
255-
if (VscodeSettings.getInstance().logLevel === "verbose") {
256+
const verbose = VscodeSettings.getInstance().logLevel === "verbose";
257+
if (verbose) {
256258
args.push("--verbose");
257259
}
258260
if (output || dc.output) {

0 commit comments

Comments
 (0)