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

Commit abcfcc1

Browse files
committed
fix linting
1 parent 8400081 commit abcfcc1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/serialmonitor/serialportctrl.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,18 @@ export class SerialPortCtrl {
7171
this._outputChannel.appendLine("[Warning] Auto checking serial port open is disabled");
7272
return resolve();
7373
}
74-
74+
7575
this._currentSerialPort.write("TestingOpen" + "\r\n", (err) => {
7676
// TODO: Fix this on the serial port lib: https://github.com/EmergingTechnologyAdvisors/node-serialport/issues/795
7777
if (err && !(err.message.indexOf("Writing to COM port (GetOverlappedResult): Unknown error code 121") >= 0)) {
7878
this._outputChannel.appendLine(`[Error] Failed to open the serial port - ${this._currentPort}`);
7979
reject(err);
8080
} else {
8181
this._outputChannel.appendLine(`[Info] Opened the serial port - ${this._currentPort}`);
82-
this._currentSerialPort.set(['dtr=true'], (err) => {
82+
this._currentSerialPort.set(["dtr=true"], (err) => {
8383
if (err) {
8484
reject(err);
85-
}
85+
}
8686
});
8787
resolve();
8888
}
@@ -169,7 +169,7 @@ export class SerialPortCtrl {
169169
if (err) {
170170
reject(err);
171171
} else {
172-
this._currentSerialPort.set(['dtr=true'], (err) => {
172+
this._currentSerialPort.set(["dtr=true"], (err) => {
173173
if (err) {
174174
reject(err);
175175
} else {

0 commit comments

Comments
 (0)