From e0a3b110f2dba08e82cb6ae0601a2438c5c78576 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 25 Jan 2014 15:16:52 -0800 Subject: [PATCH] style --- index.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 97d7091..80cbe4b 100644 --- a/index.js +++ b/index.js @@ -203,11 +203,15 @@ function _hexWrite (buf, string, offset, length) { } function _utf8Write (buf, string, offset, length) { - return Buffer._charsWritten = blitBuffer(utf8ToBytes(string), buf, offset, length) + var charsWritten = Buffer._charsWritten = + blitBuffer(utf8ToBytes(string), buf, offset, length) + return charsWritten } function _asciiWrite (buf, string, offset, length) { - return Buffer._charsWritten = blitBuffer(asciiToBytes(string), buf, offset, length) + var charsWritten = Buffer._charsWritten = + blitBuffer(asciiToBytes(string), buf, offset, length) + return charsWritten } function _binaryWrite (buf, string, offset, length) { @@ -215,7 +219,9 @@ function _binaryWrite (buf, string, offset, length) { } function _base64Write (buf, string, offset, length) { - return Buffer._charsWritten = blitBuffer(base64ToBytes(string), buf, offset, length) + var charsWritten = Buffer._charsWritten = + blitBuffer(base64ToBytes(string), buf, offset, length) + return charsWritten } Buffer.prototype.write = function (string, offset, length, encoding) { -- 2.34.1