diff --git a/plugins/pilot/util.js b/plugins/pilot/util.js index 662e69bd..e75f9d4f 100644 --- a/plugins/pilot/util.js +++ b/plugins/pilot/util.js @@ -217,9 +217,8 @@ exports.indexOfProperty = function(array, propertyName, item) { * A la Prototype last(). */ exports.last = function(array) { - if (Array.isArray(array)) { - return array[array.length - 1]; - } + +return array[array.length - 1]; }; /**