Skip to content

Commit 6cd548a

Browse files
committed
chore: remove logging
1 parent cde43f0 commit 6cd548a

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

client/src/connection/ssh/index.ts

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -174,23 +174,19 @@ export class SSHSession extends Session {
174174

175175
s.on("data", (data) => {
176176
fileContents += data.toString();
177-
})
178-
.on("close", (code) => {
179-
const rc: number = code;
180-
181-
if (rc === 0) {
182-
//Make sure that the html has a valid body
183-
//TODO #185: should this be refactored into a shared location?
184-
if (fileContents.search('<*id="IDX*.+">') !== -1) {
185-
runResult.html5 = fileContents;
186-
runResult.title = l10n.t("Result");
187-
}
177+
}).on("close", (code) => {
178+
const rc: number = code;
179+
180+
if (rc === 0) {
181+
//Make sure that the html has a valid body
182+
//TODO #185: should this be refactored into a shared location?
183+
if (fileContents.search('<*id="IDX*.+">') !== -1) {
184+
runResult.html5 = fileContents;
185+
runResult.title = l10n.t("Result");
188186
}
189-
this._resolve?.(runResult);
190-
})
191-
.on("error", (err) => {
192-
console.log(err);
193-
});
187+
}
188+
this._resolve?.(runResult);
189+
});
194190
},
195191
);
196192
};

0 commit comments

Comments
 (0)