Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Apr 1, 2015
1 parent 9ed2faa commit a4483cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/args.js
Expand Up @@ -134,15 +134,15 @@ module.exports = function (args, opts) {

[].concat(argv.require).filter(Boolean)
.forEach(function (r) {
var xs = _splitOnColon(r);
var xs = splitOnColon(r);
b.require(xs[0], { expose: xs.length === 1 ? xs[0] : xs[1] })
})
;

// resolve any external files and add them to the bundle as externals
[].concat(argv.external).filter(Boolean)
.forEach(function (x) {
var xs = _splitOnColon(x);
var xs = splitOnColon(x);
if (xs.length === 2) {
add(xs[0], { expose: xs[1] });
}
Expand Down Expand Up @@ -243,7 +243,7 @@ function copy (obj) {
}, {});
}

function _splitOnColon (f) {
function splitOnColon (f) {
var pos = f.lastIndexOf(':');
if (pos == -1) {
return [f]; // No colon
Expand Down

0 comments on commit a4483cd

Please sign in to comment.