Skip to content

Commit

Permalink
[KOGITO-9584] Formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado committed Jul 20, 2023
1 parent 28b3577 commit 0559465
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ public static Optional<byte[]> loadResourceFile(Workflow workflow, Optional<Pars
public static Optional<byte[]> loadResourceFile(String uriStr, Optional<Workflow> workflow, Optional<ParserContext> parserContext, String authRef) {
final URI uri = URI.create(uriStr);
try {
Builder builder = URIContentLoaderFactory.builder(uri).withAuthRef(authRef);
workflow.ifPresent(builder::withWorkflow);
parserContext.map(p -> p.getContext().getClassLoader()).ifPresent(builder::withClassloader);
Builder builder = URIContentLoaderFactory.builder(uri).withAuthRef(authRef);
workflow.ifPresent(builder::withWorkflow);
parserContext.map(p -> p.getContext().getClassLoader()).ifPresent(builder::withClassloader);
return Optional.of(URIContentLoaderFactory.readAllBytes(builder.build()));
} catch (UncheckedIOException io) {
// if file cannot be found in build context, warn it and return the unmodified uri (it might be possible that later the resource is available at runtime)
Expand Down

0 comments on commit 0559465

Please sign in to comment.