Skip to content

Commit

Permalink
style: use object to avoid calling get twice
Browse files Browse the repository at this point in the history
Co-authored-by: Christine Poerschke <[email protected]>
  • Loading branch information
ellaeln and cpoerschke authored Sep 16, 2024
1 parent 8f41e2e commit 4a2bf64
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ protected void writeResponse(
if (debugObj != null) {
final NamedList<Object> debug =
(NamedList<Object>) debugObj;
if (debug.get(CommonParams.TRACK) != null) {
final NamedList<Object> track = (NamedList<Object>) debug.get(CommonParams.TRACK);
final Object trackObj = debug.get(CommonParams.TRACK);
if (trackObj != null) {
final NamedList<Object> track = (NamedList<Object>) trackObj;
track.add("requestCoordinatorNode", cores.getHostName());
}
}
Expand Down

0 comments on commit 4a2bf64

Please sign in to comment.