Skip to content

Commit

Permalink
Revert unneeded formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass committed Nov 8, 2023
1 parent a6ae65c commit 4c1a914
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/actionlib/SimpleActionServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function SimpleActionServer(options) {
this.nextGoal = null; // the one that'll be preempting

goalListener.subscribe(function(goalMessage) {

if(that.currentGoal) {
that.nextGoal = goalMessage;
// needs to happen AFTER rest is set up
Expand Down Expand Up @@ -128,7 +128,7 @@ function SimpleActionServer(options) {
}
if(that.currentGoal && isEarlier(that.currentGoal.goal_id.stamp,
cancelMessage.stamp)) {

that.emit('cancel');
}
}
Expand All @@ -153,7 +153,7 @@ SimpleActionServer.prototype.__proto__ = EventEmitter2.prototype;
*/

SimpleActionServer.prototype.setSucceeded = function(result2) {


var resultMessage = new Message({
status : {goal_id : this.currentGoal.goal_id, status : 3},
Expand Down Expand Up @@ -226,4 +226,4 @@ SimpleActionServer.prototype.setPreempted = function() {
}
};

module.exports = SimpleActionServer;
module.exports = SimpleActionServer;
1 change: 1 addition & 0 deletions src/actionlib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var action = module.exports = {
ActionClient: require('./ActionClient'),
ActionListener: require('./ActionListener'),
Goal: require('./Goal'),
SimpleActionServer: require('./SimpleActionServer'),
};

mixin(Ros, ['ActionClient', 'SimpleActionServer'], action);
2 changes: 1 addition & 1 deletion test/examples/fibonacci.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ describe('Fibonacci Example', function() {
goal.send();
}, 100);
});
});
});

0 comments on commit 4c1a914

Please sign in to comment.