From 1a32e3737f5ba13340979af794e32ba2ffdf671b Mon Sep 17 00:00:00 2001 From: Dimitrie Stefanescu Date: Wed, 4 Dec 2019 15:04:16 +0000 Subject: [PATCH] style(linting): fixed --- plugins.js | 2 +- server.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins.js b/plugins.js index 7b4507dc..4075b931 100644 --- a/plugins.js +++ b/plugins.js @@ -1,7 +1,7 @@ const fs = require( 'fs' ) const path = require( 'path' ) const winston = require( './config/logger' ) -const URL = require( 'url').URL +const URL = require( 'url' ).URL const isDirectory = source => fs.lstatSync( source ).isDirectory( ) const getDirectories = source => fs.readdirSync( source ).map( name => path.join( source, name ) ).filter( isDirectory ) diff --git a/server.js b/server.js index dbf37b7d..93570fb1 100644 --- a/server.js +++ b/server.js @@ -9,7 +9,7 @@ const mongoose = require( 'mongoose' ).set( 'debug', false ) const expressWinston = require( 'express-winston' ) const redis = require( 'redis' ) const logger = require( './config/logger' ) -const URL = require('url').URL +const URL = require( 'url' ).URL // load up .env const configResult = require( 'dotenv' ).config( { path: './.env' } )