From f7dc6598670550f82c3359e84b3d95746d4f717c Mon Sep 17 00:00:00 2001 From: Wes Mason Date: Tue, 3 May 2016 22:30:24 +0100 Subject: [PATCH] Not tabs please --- app.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app.js b/app.js index 273325c..3885808 100644 --- a/app.js +++ b/app.js @@ -37,12 +37,12 @@ app.get( '/:package', function( req, res, next ){ return fileExists( cacheFile ) .tap( function( isExists ){ if( !isExists ){ - if ( ENABLE_NPM_FAILOVER ) { - res._log.cacheHit = '---'; - return fetchAndCacheMetadata( packageName, cacheFile ); - } else { - return res.status( 404 ).json( {} ); - } + if ( ENABLE_NPM_FAILOVER ) { + res._log.cacheHit = '---'; + return fetchAndCacheMetadata( packageName, cacheFile ); + } else { + return res.status( 404 ).json( {} ); + } } }) .then( function( ){ @@ -65,12 +65,12 @@ app.get( '/:package/-/:tarball', function( req, res, next ){ fileExists( packagePath ) .tap( function( isExists ){ if( !isExists ){ - if ( ENABLE_NPM_FAILOVER ) { - res._log.cacheHit = '---'; - return fetchAndCacheTarball( packageName, version, packagePath ); - } else { - return res.status( 404 ).json( {} ); - } + if ( ENABLE_NPM_FAILOVER ) { + res._log.cacheHit = '---'; + return fetchAndCacheTarball( packageName, version, packagePath ); + } else { + return res.status( 404 ).json( {} ); + } } }) .then( function(){