Skip to content

Commit 5e4693a

Browse files
committed
Minor refactor
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
1 parent 6203cea commit 5e4693a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rcljava/src/main/java/org/ros2/rcljava/action/ActionServerImpl.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public synchronized final long getHandle() {
184184
private final T actionTypeInstance;
185185
private final String actionName;
186186
private long handle;
187-
private final GoalCallback<? extends GoalRequestDefinition<T>> goalCallback;
187+
private final GoalCallback goalCallback;
188188
private final CancelCallback<T> cancelCallback;
189189
private final Consumer<ActionServerGoalHandle<T>> acceptedCallback;
190190

@@ -329,8 +329,7 @@ private ActionServerGoalHandle<T> executeGoalRequest(
329329
}
330330

331331
// Call user callback
332-
GoalCallback callback = this.goalCallback;
333-
GoalCallback.GoalResponse response = callback.handleGoal(requestMessage);
332+
GoalCallback.GoalResponse response = this.goalCallback.handleGoal(requestMessage);
334333

335334
boolean accepted = GoalCallback.GoalResponse.ACCEPT == response;
336335
responseMessage.accept(accepted);

0 commit comments

Comments
 (0)