From a4503cb247b19e303a4850e89c5f612d3d0be283 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 15 Oct 2019 14:54:30 +0200 Subject: [PATCH] doc,lib: fix lint issues --- doc/api/quic.md | 8 ++++---- lib/internal/quic/core.js | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/api/quic.md b/doc/api/quic.md index ecd008730e..3b58230ded 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -1118,8 +1118,8 @@ added: REPLACEME * `length` {number} The amount of data from the fd to send. Default: `-1`. -Instead of using a `Quicstream` as a writable stream, send data from a given file -descriptor. +Instead of using a `Quicstream` as a writable stream, send data from a given +file descriptor. If `offset` is set to a non-negative number, reading starts from that position and the file offset will not be advanced. @@ -1146,8 +1146,8 @@ added: REPLACEME * `length` {number} The amount of data from the fd to send. Default: `-1`. -Instead of using a `QuicStream` as a writable stream, send data from a given file -path. +Instead of using a `QuicStream` as a writable stream, send data from a given +file path. The `options.onError` callback will be called if the file could not be opened. If `offset` is set to a non-negative number, reading starts from that position. diff --git a/lib/internal/quic/core.js b/lib/internal/quic/core.js index ae75d82caf..c12dbd156e 100644 --- a/lib/internal/quic/core.js +++ b/lib/internal/quic/core.js @@ -21,7 +21,6 @@ const { validateQuicClientSessionOptions, validateQuicSocketOptions, } = require('internal/quic/util'); -const { validateNumber } = require('internal/validators'); const util = require('util'); const assert = require('internal/assert'); const EventEmitter = require('events');