Skip to content

Commit 9d5a0c8

Browse files
committed
Rename identifier for possible collision down the line
Post OpenUserJS#1303 OpenUserJS#1307
1 parent 7fc1187 commit 9d5a0c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controllers/scriptStorage.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1459,10 +1459,10 @@ exports.storeScript = function (aUser, aMeta, aBuf, aUpdate, aCallback) {
14591459
fn.get(URL.parse(icon), function (aRes) {
14601460
var chunks = [];
14611461
aRes.on('data', function (aChunk) {
1462-
var buffer = null;
1462+
var buf = null;
14631463
chunks.push(aChunk);
1464-
buffer = Buffer.concat(chunks);
1465-
if (buffer.length > 3048) { // NOTE: KiB
1464+
buf = Buffer.concat(chunks);
1465+
if (buf.length > 3048) { // NOTE: KiB
14661466
aRes.destroy();
14671467
}
14681468
}).on('end', function () {

0 commit comments

Comments
 (0)