Skip to content

Commit

Permalink
fix order or arguments to defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
monken committed May 30, 2016
1 parent 1a6c7cb commit c5ccefe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ function findAndReplace(scope, object) {
}

function include(base, scope, args) {
args = _.defaults({ type: 'json' }, _.isPlainObject(args) ? args : {
args = _.defaults(_.isPlainObject(args) ? args : {
location: args,
});
}, { type: 'json' });
var body, absolute, location = parseLocation(args.location);
if (!location.protocol) location.protocol = base.protocol;
if (location.protocol === 'file') {
Expand Down

0 comments on commit c5ccefe

Please sign in to comment.