Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mpkorstanje committed Jun 14, 2024
1 parent 20dad6c commit 46659cd
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ public String getClasspathResourceName() {
public Resource getClasspathResource() {
if (this.classpathResource == null) {
// @formatter:off
Try<Resource> tryToLoadResource = ReflectionUtils.tryToLoadResource(this.classpathResourceName);
this.classpathResource = tryToLoadResource.getOrThrow(cause ->
new PreconditionViolationException("Could not load resource with name: " + this.classpathResourceName, cause));
// @formatter:on
Try<Resource> tryToLoadResource = ReflectionUtils.tryToLoadResource(this.classpathResourceName);
this.classpathResource = tryToLoadResource.getOrThrow(cause ->
new PreconditionViolationException("Could not load resource with name: " + this.classpathResourceName, cause));
// @formatter:on
}
return this.classpathResource;
}
Expand Down

0 comments on commit 46659cd

Please sign in to comment.