lib/download/git.js
function getUrl(repo, clone) {
	let url;

	if (repo.type === 'github') {
		url = github(repo, clone);
	} else if (repo.type === 'gitlab') {
		url = gitlab(repo, clone);
	} else if (repo.type === 'bitbucket') {
		url = bitbucket(repo, clone);
	} else if (repo.type === 'oschina') {
		url = oschina(repo, clone);
	} else {
		url = github(repo, clone);
	}

	return url;
}
function getUrl(repo, clone) {
	let url;

	if (repo.type === 'github') {
		url = github(repo, clone);
	} else if (repo.type === 'gitlab') {
		url = gitlab(repo, clone);
	} else if (repo.type === 'bitbucket') {
		url = bitbucket(repo, clone);
	} else if (repo.type === 'oschina') {
		url = oschina(repo, clone);
	} else {
		url = github(repo, clone);
	}

	return url;
}
function getUrl ( repo , clone ) { let url ; if ( repo . type === 'github' ) { url = github ( repo , clone ) ; } else if ( repo . type === 'gitlab' ) { url = gitlab ( repo , clone ) ; } else if ( repo . type === 'bitbucket' ) { url = bitbucket ( repo , clone ) ; } else if ( repo . type === 'oschina' ) { url = oschina ( repo , clone ) ; } else { url = github ( repo , clone ) ; } return url ; }
Return a zip or git url for a given `repo`.

@param {Object} repo
@param {Boolean} [clone]
@return {String|Object}
Return a zip or git url for a given repo .