Revert "Revert "Fix length (the linter really should have caught this one)""

This reverts commit 93a73e9e44.
This commit is contained in:
Jaco Greeff
2018-08-29 16:11:08 +02:00
parent 7ff9ff8b34
commit 13925f580a
+1 -1
View File
@@ -331,7 +331,7 @@ export default class Combined implements DiskStore {
l.debug(() => ['readValue', debug({ key, keyAt, keyValue })]);
const { valueAt, valueLength } = this._extractValueInfo(keyValue);
const value = Buffer.alloc(length);
const value = Buffer.alloc(valueLength);
fs.readSync(this._fd, value, 0, valueLength, valueAt);