Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix findById which was using double rather than triple equals operator #756

Merged
merged 1 commit into from
Sep 5, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/forever.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -681,15 +681,15 @@ 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.
//
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; }
Expand Down