From 74170caf0b332dae01fb81cf03145a17df83b6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=8F=9C?= Date: Wed, 4 Jul 2018 11:33:01 +0800 Subject: [PATCH] chore: fix comment & approve cov (#1214) --- lib/request.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/request.js b/lib/request.js index fdf540e..9ef7c49 100644 --- a/lib/request.js +++ b/lib/request.js @@ -280,6 +280,7 @@ module.exports = { */ get URL() { + /* istanbul ignore else */ if (!this.memoizedURL) { const protocol = this.protocol; const host = this.host; @@ -642,7 +643,7 @@ module.exports = { * // => "text/plain" * * this.get('Something'); - * // => undefined + * // => '' * * @param {String} field * @return {String} @@ -694,6 +695,8 @@ module.exports = { * @return {Object} * @api public */ + +/* istanbul ignore else */ if (util.inspect.custom) { module.exports[util.inspect.custom] = module.exports.inspect; }