Skip to content

Commit bee0b99

Browse files
Don't return empty object for unit (#40)
1 parent e6a8786 commit bee0b99

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Node/Buffer/Internal.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ exports.writeInternal = function (ty) {
1313
return function (buf) {
1414
return function () {
1515
buf["write" + ty](value, offset);
16-
return {};
1716
};
1817
};
1918
};
@@ -39,7 +38,6 @@ exports.setAtOffset = function (value) {
3938
return function (buff) {
4039
return function () {
4140
buff[offset] = value;
42-
return {};
4341
};
4442
};
4543
};
@@ -65,7 +63,6 @@ exports.fill = function (octet) {
6563
return function (buf) {
6664
return function () {
6765
buf.fill(octet, start, end);
68-
return {};
6966
};
7067
};
7168
};

src/Node/Buffer/Internal.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ module Node.Buffer.Internal
2323
, concat
2424
, concat'
2525
, copy
26-
, fill ) where
26+
, fill
27+
) where
2728

2829
import Prelude
2930

0 commit comments

Comments
 (0)