Var typos.

This commit is contained in:
André Cruz
2013-04-14 17:09:35 +01:00
parent 8ec8118d39
commit 643f4fddf9

View File

@@ -6,15 +6,15 @@ var UrlResolver = require('./resolvers/UrlResolver');
function createResolver(endpoint, options) {
var split = endpoint.split('#'),
range;
target;
// Extract the range from the endpoint
endpoint = split[0];
range = split[1];
target = split[1];
// Ensure options
options = options || {};
options.range = options.range || range;
options.target = options.target || target;
// TODO: analyze endpoint and create appropriate package
return Q.fcall(new GitRemoteResolver(endpoint, options));