From f8698760db02e39754ee503a30f64b440662b450 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 31 May 2018 07:46:14 +0200 Subject: [PATCH] net: use object destructoring for errors --- lib/net.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/net.js b/lib/net.js index 6eb6ae818f5ae3..eec25693515f46 100644 --- a/lib/net.js +++ b/lib/net.js @@ -82,8 +82,7 @@ const kLastWriteQueueSize = Symbol('lastWriteQueueSize'); let cluster; let dns; -const errnoException = errors.errnoException; -const exceptionWithHostPort = errors.exceptionWithHostPort; +const { errnoException, exceptionWithHostPort } = errors; const { kTimeout,