Skip to content

Commit

Permalink
#141 Use inputStream as variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed May 6, 2024
1 parent fd26e44 commit 225eade
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ final class DefaultResourceLoader implements ResourceLoader {

@Override
public InputStream getResourceAsStream(String resourcePath) {
var is = getClass().getResourceAsStream("/" + resourcePath);
if (is == null) {
var inputStream = getClass().getResourceAsStream("/" + resourcePath);
if (inputStream == null) {
// search the module path for top level resource
is = ClassLoader.getSystemResourceAsStream(resourcePath);
inputStream = ClassLoader.getSystemResourceAsStream(resourcePath);
}
return is;
return inputStream;
}
}

0 comments on commit 225eade

Please sign in to comment.