Skip to content

Commit

Permalink
[backend] refact
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 committed Sep 11, 2024
1 parent bc4d2f0 commit 802f5f0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public void launchExecutorClear(@NotNull final Injector injector, @NotNull final
}

private boolean isElevationRequired(final Inject inject) {
// Fix me add also for caldera
return inject.getInjectorContract().map(injectorContract -> injectorContract.getPayload().isElevationRequired()).orElse(false).booleanValue();
return inject.getInjectorContract().map(injectorContract -> injectorContract.getPayload()).map(payload->payload.isElevationRequired()).orElse(false).booleanValue();
}
}

0 comments on commit 802f5f0

Please sign in to comment.