From a4ec3c8a35c3ad84435f59169992eae0e8ebce32 Mon Sep 17 00:00:00 2001 From: Thomas Honeyman Date: Thu, 10 Dec 2020 13:38:34 -0800 Subject: [PATCH] Don't return empty object for unit --- src/Node/Buffer/Internal.js | 3 --- src/Node/Buffer/Internal.purs | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Node/Buffer/Internal.js b/src/Node/Buffer/Internal.js index 81eee15..74a0a9c 100644 --- a/src/Node/Buffer/Internal.js +++ b/src/Node/Buffer/Internal.js @@ -13,7 +13,6 @@ exports.writeInternal = function (ty) { return function (buf) { return function () { buf["write" + ty](value, offset); - return {}; }; }; }; @@ -39,7 +38,6 @@ exports.setAtOffset = function (value) { return function (buff) { return function () { buff[offset] = value; - return {}; }; }; }; @@ -65,7 +63,6 @@ exports.fill = function (octet) { return function (buf) { return function () { buf.fill(octet, start, end); - return {}; }; }; }; diff --git a/src/Node/Buffer/Internal.purs b/src/Node/Buffer/Internal.purs index b5d2883..427b6ac 100644 --- a/src/Node/Buffer/Internal.purs +++ b/src/Node/Buffer/Internal.purs @@ -23,7 +23,8 @@ module Node.Buffer.Internal , concat , concat' , copy - , fill ) where + , fill + ) where import Prelude