Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kezhu Wang <[email protected]>
  • Loading branch information
HoustonPutman and kezhuw authored Dec 19, 2024
1 parent 44f3198 commit 31bcdea
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,11 @@ public void performBackgroundOperation(final OperationAndData<String> operationA
@Override
public void processResult(int rc, String path, Object o, List<String> strings, Stat stat) {
watching.commitWatcher(rc, false);
if (strings == null) {
strings = Lists.newArrayList();
}
trace.setReturnCode(rc)
.setPath(path)
.setWithWatcher(watching.hasWatcher())
.setStat(stat)
.setResponseChildrenCount(strings.size())
.setResponseChildrenCount(strings != null ? strings.size() : 0)
.commit();
CuratorEventImpl event = new CuratorEventImpl(
client,
Expand Down

0 comments on commit 31bcdea

Please sign in to comment.