Skip to content

Commit

Permalink
fix: use local options instead of instance to check "exec"
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Sep 18, 2019
1 parent c005718 commit 38a730d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factory-in-proc.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class FactoryInProc {
delete daemonOptions.config.Addresses
}

if (typeof this.options.exec !== 'function') {
if (typeof daemonOptions.exec !== 'function') {
throw new Error('\'type\' proc requires \'exec\' to be a coderef')
}

Expand Down

0 comments on commit 38a730d

Please sign in to comment.