Skip to content

Commit

Permalink
address proper linting
Browse files Browse the repository at this point in the history
  • Loading branch information
justinpinili committed Dec 19, 2020
1 parent 0a3cac2 commit 36c18ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stream-socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ ServerStream.prototype._write = function(chunk, encoding, callback) {
if (socket.readyState !== 1) return;
try {
socket.onmessage({data: JSON.stringify(chunk)});
} catch(e) {
} catch (error) {
socket.onmessage({data: chunk});
}
callback();
Expand Down

0 comments on commit 36c18ee

Please sign in to comment.