Permalink
Browse files

isArray... my friend

  • Loading branch information...
1 parent af136a4 commit 2df3790b3c5d0cb0ce36affe6298922721e869ad @temas temas committed Mar 18, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/podClient.js
View
@@ -262,8 +262,8 @@ exports.pipelineInject = function(bases, auth, cbDone) {
cbStep(err);
});
} else {
- console.log("Running a local inject for %s of %d entries!", base, typeof bases[base] == "array" ? bases[base].length : 0);
- if (typeof bases[base] != "array") {
+ console.log("Running a local inject for %s of %d entries!", base, Array.isArray(bases[base]) ? bases[base].length : 0);
+ if (!Array.isArray(bases[base])) {
logger.error("Busted entry is not an array");
return cbStep();
}

0 comments on commit 2df3790

Please sign in to comment.