Skip to content

Commit

Permalink
edit suggested by linter
Browse files Browse the repository at this point in the history
  • Loading branch information
kimbob13 committed Dec 6, 2023
1 parent a8ef596 commit 2437dc5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tabby-terminal/src/middleware/streamProcessing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

Expand Down

0 comments on commit 2437dc5

Please sign in to comment.