Skip to content

Commit

Permalink
Merge pull request #49 from pedrokiefer/patch-1
Browse files Browse the repository at this point in the history
Fix _setupFlight
  • Loading branch information
pstadler committed Dec 3, 2014
2 parents db3df21 + 376fa0b commit 1befdb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function _setupFlight(type, tasksOrFn, fn) {
var tasks;
if(typeof tasksOrFn === 'string') {
tasks = [tasksOrFn];
} else if(Array.isArray(tasks)) {
} else if(Array.isArray(tasksOrFn)) {
tasks = tasksOrFn;
} else {
tasks = [DEFAULT_TASK];
Expand Down Expand Up @@ -321,4 +321,4 @@ Flightplan.prototype.abort = function(message) {
};

var instance = new Flightplan();
module.exports = instance;
module.exports = instance;

0 comments on commit 1befdb8

Please sign in to comment.