diff --git a/lib/forever.js b/lib/forever.js old mode 100644 new mode 100755 index 0f8d952b..a44aa03b --- a/lib/forever.js +++ b/lib/forever.js @@ -681,7 +681,7 @@ forever.tail = function (target, options, callback) { // // ### function findById (id, processes) -// #### @index {string} Index of the process to find. +// #### @id {string} id of the process to find. // #### @processes {Array} Set of processes to find in. // Finds the process with the specified index. // @@ -689,7 +689,7 @@ forever.findById = function (id, processes) { if (!processes) { return null; } var procs = processes.filter(function (p) { - return p.id == id; + return p.id === id; }); if (procs.length === 0) { procs = null; }