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:
parent
a8ef5963c3
commit
2437dc5bdc
@ -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')
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user