Skip to content

Commit

Permalink
fix: removed Exception never thrown by WatchMojo.getWatchContext() me…
Browse files Browse the repository at this point in the history
…thod and the corresponding catch block associated with the exception.

Signed-off-by: Joseph Victor <[email protected]>
  • Loading branch information
Josephvictor authored May 22, 2024
1 parent 225d80b commit 4cccc93
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ private WatcherContext getWatcherContext() throws MojoExecutionException {
.build();
} catch (DependencyResolutionRequiredException dependencyException) {
throw new MojoExecutionException("Instructed to use project classpath, but cannot. Continuing build if we can: " + dependencyException.getMessage());
} catch (IOException ioException) {
throw new MojoExecutionException(ioException.getMessage());
}
}

Expand All @@ -150,7 +148,7 @@ protected KitLogger createLogger(String prefix) {
return new AnsiLogger(getLog(), useColor, verbose, !settings.getInteractiveMode(), getLogPrefix() + prefix);
}

protected WatchContext getWatchContext() throws DependencyResolutionRequiredException, IOException {
protected WatchContext getWatchContext() throws DependencyResolutionRequiredException {
final DockerServiceHub hub = jkubeServiceHub.getDockerServiceHub();
return WatchContext.builder()
.watchInterval(watchInterval)
Expand Down

0 comments on commit 4cccc93

Please sign in to comment.