From d78bb1b5abadba36227366f5acf1e781570f1893 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Thu, 16 Dec 2010 18:25:29 +0100 Subject: [PATCH] remove type check --- plugins/pilot/util.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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]; }; /**