Skip to content

Commit

Permalink
[fix] Quick fix for the last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Jun 24, 2011
1 parent 6902890 commit 76be51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/forever/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ var Monitor = exports.Monitor = function (script, options) {
// Last if any hooks have been passed in attach
// this instance to them
//
if (options.hooks.length > 0) {
if (options.hooks && options.hooks.length > 0) {
options.hooks.forEach(function (hook) {
if (typeof hook === 'function') {
return hook(self);
Expand Down

0 comments on commit 76be51e

Please sign in to comment.