Skip to content

Commit

Permalink
ninja minor code cleanup
Browse files Browse the repository at this point in the history
(cherry picked from commit cb71fc8)
  • Loading branch information
1azyman committed Oct 18, 2023
1 parent 0a7d662 commit 964fb53
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void setErr(@NotNull PrintStream err) {
this.err = err;
}

protected <T> @NotNull MainResult<?> run(String[] args) {
protected @NotNull MainResult<?> run(String[] args) {
AnsiConsole.systemInstall();

try {
Expand Down Expand Up @@ -156,7 +156,7 @@ public void setErr(@NotNull PrintStream err) {
}

NinjaApplicationContextLevel contextLevel = action.getApplicationContextLevel(allOptions);
if (contextLevel != null && contextLevel != NinjaApplicationContextLevel.NONE) {
if (contextLevel != NinjaApplicationContextLevel.NONE) {
ConnectionOptions connectionOptions =
Objects.requireNonNullElse(context.getOptions(ConnectionOptions.class), new ConnectionOptions());
checkAndWarnMidpointHome(connectionOptions.getMidpointHome());
Expand Down

0 comments on commit 964fb53

Please sign in to comment.