Skip to content

Commit

Permalink
use of
Browse files Browse the repository at this point in the history
  • Loading branch information
cgardens committed Jun 24, 2022
1 parent cc1c84a commit 48d3bc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private static Optional<GlobalState> globalStateToApi(final @Nullable StateWrapp
&& stateWrapper.getStateType() == StateType.GLOBAL
&& stateWrapper.getGlobal() != null
&& stateWrapper.getGlobal().getGlobal() != null) {
return Optional.ofNullable(new GlobalState()
return Optional.of(new GlobalState()
.sharedState(stateWrapper.getGlobal().getGlobal().getSharedState())
.streamStates(stateWrapper.getGlobal().getGlobal().getStreamStates()
.stream()
Expand Down

0 comments on commit 48d3bc7

Please sign in to comment.