Skip to content

Commit

Permalink
Merge branch '1.1.8'
Browse files Browse the repository at this point in the history
Conflicts:
	lib/service/packageDetailsProvider.js
  • Loading branch information
Hacklone committed Sep 25, 2016
2 parents b0dd155 + 2945540 commit d1ef840
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ module.exports = function Application() {

function _shutDown() {
logger.log('Shutting down private-bower');

_listeningServer.close();

if(_listeningServer){
_listeningServer.close();
}

publicPackageStore.shutDown();

if(_repoCacheHandler) {
Expand Down
3 changes: 1 addition & 2 deletions lib/service/packageDetailsProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ var SvnPackageDetailsProvider = require('./svnPackageDetailsProvider');
var utils = require('../infrastructure/utils');

module.exports = function PackageDetailsProvider() {

function _getPackageDetails(packageUrl) {
if(packageUrl.substring(0, 4) === 'svn+') {
if(packageUrl.startsWith('svn+')) {
return SvnPackageDetailsProvider.getPackageDetails(packageUrl);
}
return GitPackageDetailsProvider.getPackageDetails(packageUrl);
Expand Down

0 comments on commit d1ef840

Please sign in to comment.