Skip to content

Commit

Permalink
fix: use arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
dryajov authored and jacobheun committed Feb 7, 2019
1 parent c041265 commit 9a0b166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Mplex extends EE {
coder.decode(),
(read) => {
const next = looper(() => {
read(null, function (end, data) {
read(null, (end, data) => {
if (self._endedLocal) { return }
if (end === true) { return self.close() }
if (end) { return self.reset(end) }
Expand Down

0 comments on commit 9a0b166

Please sign in to comment.