]> zoso.dev Git - buffer.git/commitdiff
style
authorFeross Aboukhadijeh <feross@feross.org>
Sat, 25 Jan 2014 23:16:52 +0000 (15:16 -0800)
committerFeross Aboukhadijeh <feross@feross.org>
Sat, 25 Jan 2014 23:16:52 +0000 (15:16 -0800)
index.js

index 97d709145b21a42e8c0c9f67afa7847510b3c619..80cbe4b9b85c260684d3ffb41db7c664b9e8b4d6 100644 (file)
--- 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) {