Skip to content

Commit

Permalink
Wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
brett-smith committed Feb 29, 2024
1 parent aa6b395 commit 2aa77b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/sshtools/tinytemplate/Templates.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ public final static Logger defaultStdOutLogger() {
public final static class TemplateModel implements Closeable {

public static TemplateModel ofPath(Path path) {
try(var rdr = Files.newBufferedReader(path)) {
return new TemplateModel(rdr);
try {
return new TemplateModel(Files.newBufferedReader(path));
}
catch(IOException ioe) {
throw new UncheckedIOException(ioe);
Expand Down

0 comments on commit 2aa77b8

Please sign in to comment.