Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Only generate sim-host success/fail methods if needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
TimBarham committed Oct 12, 2015
1 parent fdd2d21 commit c0aa6ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sim-host/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module.exports.initialize = function (pluginHandlers) {
throw 'Exec called on simulation host without an index specified';
}

var success = getSuccess(index);
var failure = getFailure(index);
var success = data.hasSuccess? getSuccess(index) : null;
var failure = data.hasFail? getFailure(index) : null;

var service = data.service;
if (!service) {
Expand Down

0 comments on commit c0aa6ba

Please sign in to comment.