Not tabs please

This commit is contained in:
Wes Mason
2016-05-03 22:30:24 +01:00
parent 989512f437
commit f7dc659867
+12 -12
View File
@@ -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(){