Skip to content

Commit

Permalink
Merge pull request #14 from abatilo/master
Browse files Browse the repository at this point in the history
Use === in generated code
  • Loading branch information
lyonlai committed Apr 29, 2021
2 parents 142798a + f75d8da commit e2b40a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function getNewLineDelimitedJSONDecodingStream<T>(): TransformStream<string, T>
}
controller.buf += chunk
while (controller.pos < controller.buf.length) {
if (controller.buf[controller.pos] == '\n') {
if (controller.buf[controller.pos] === '\n') {
const line = controller.buf.substring(0, controller.pos)
const response = JSON.parse(line)
controller.enqueue(response.result)
Expand Down

0 comments on commit e2b40a5

Please sign in to comment.