1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-25 19:17:39 +03:00

edit suggested by linter

This commit is contained in:
ChangHwan Kim 2023-12-06 10:26:11 +09:00
parent a8ef5963c3
commit 2437dc5bdc

View File

@ -133,11 +133,9 @@ export class TerminalStreamProcessor extends SessionMiddleware {
private replaceNewlines (data: Buffer, mode?: NewlineMode): Buffer {
if (!mode) {
return data
}
else if (mode == 'implicit_cr') {
} else if (mode === 'implicit_cr') {
return bufferReplace(data, '\n', '\r\n')
}
else if (mode == 'implicit_lf') {
} else if (mode === 'implicit_lf') {
return bufferReplace(data, '\r', '\r\n')
}