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

This reverts commit 9a66137c62.
This commit is contained in:
Jaco Greeff
2018-08-29 16:01:54 +02:00
parent 041f84e6e1
commit 93a73e9e44
+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(valueLength);
const value = Buffer.alloc(length);
fs.readSync(this._fd, value, 0, valueLength, valueAt);