From e329b50e1f87e765617d86674a1e66b68bf87af1 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Fri, 6 Mar 2015 08:46:01 +1100 Subject: [PATCH] index: don't use reserved keyword "byte" --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index a526681..147a593 100644 --- a/index.js +++ b/index.js @@ -344,9 +344,9 @@ function hexWrite (buf, string, offset, length) { length = strLen / 2 } for (var i = 0; i < length; i++) { - var byte = parseInt(string.substr(i * 2, 2), 16) - if (isNaN(byte)) throw new Error('Invalid hex string') - buf[offset + i] = byte + var parsed = parseInt(string.substr(i * 2, 2), 16) + if (isNaN(parsed)) throw new Error('Invalid hex string') + buf[offset + i] = parsed } return i } -- 2.34.1