mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
edit suggested by linter
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user