Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

isArray... my friend

  • Loading branch information...
commit 2df3790b3c5d0cb0ce36affe6298922721e869ad 1 parent af136a4
@temas temas authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/podClient.js
View
4 lib/podClient.js
@@ -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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.