Commit c243ea1f authored by Julien Fontanet's avatar Julien Fontanet

fix(read): assert start is not null

parent bd62da06
......@@ -5,7 +5,7 @@ var request = require('../tools/smb2-forge').request;
var MAX_READ_LENGTH = require('../structures/constants').MAX_READ_LENGTH;
module.exports = function read(file, buffer, offset, length, start, cb) {
assert(pos !== null, 'null pos is not supported');
assert(start !== null, 'null pos is not supported');
var connection = this;
var end = Math.min(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment