Closed patriksh closed 3 years ago
this.follow = 'follow' in options ? options.follow : true;
TypeError: Cannot use 'in' operator to search for 'follow' at new Tail (tail.js:20:32).
node.js v12.2.0
This has been caused by https://github.com/lucagrulla/node-tail/commit/2feb1e970fb3fcc37018146f20cfbc881984285f
this.follow = options.follow || true; works fine but then doesn't allow you to set the option to false.
this.follow = options.follow || true;
this.follow = 'follow' in options ? options.follow : true;
TypeError: Cannot use 'in' operator to search for 'follow' at new Tail (tail.js:20:32).
node.js v12.2.0
This has been caused by https://github.com/lucagrulla/node-tail/commit/2feb1e970fb3fcc37018146f20cfbc881984285f
this.follow = options.follow || true;
works fine but then doesn't allow you to set the option to false.