Skip to content

Commit

Permalink
chore(bro): coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Nov 19, 2014
1 parent 75a6210 commit 9545169
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/bro.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ function Bro(bundleFile) {
log.warn('Invalid config option: "' + key + 's" should be "' + key + '"');
}

_.forEach(['transform', 'plugin'], function (key) {
if (bopts[key + 's']) warn(key);
_.forEach([ 'transform', 'plugin' ], function(key) {
if (bopts[key + 's']) {
warn(key);
}
});

var browserifyOptions = _.extend({}, watchify.args, _.omit(bopts, [
Expand All @@ -140,7 +142,7 @@ function Bro(bundleFile) {
// ensure we can pass plugin options as
// the first parameter
if (!Array.isArray(p)) {
p = [p];
p = [ p ];
}
w.plugin.apply(w, p);
});
Expand All @@ -149,7 +151,7 @@ function Bro(bundleFile) {
// ensure we can pass transform options as
// the first parameter
if (!Array.isArray(t)) {
t = [t];
t = [ t ];
}
w.transform.apply(w, t);
});
Expand All @@ -174,7 +176,7 @@ function Bro(bundleFile) {
});

// files contained in bundle
var files = [];
var files = [ ];


// update bundle file
Expand Down

0 comments on commit 9545169

Please sign in to comment.