DBZ-1621 Remove useless null check

This commit is contained in:
pan3793 2019-11-19 09:04:04 +08:00 committed by Gunnar Morling
parent 91f0c2a520
commit 33384098fd

View File

@ -250,7 +250,6 @@ public static InputStream getResourceAsStream(String resourcePath,
resourceDesc = resourcePath; resourceDesc = resourcePath;
} }
InputStream result = null; InputStream result = null;
if (result == null) {
try { try {
// Try absolute path ... // Try absolute path ...
Path filePath = FileSystems.getDefault().getPath(resourcePath).toAbsolutePath(); Path filePath = FileSystems.getDefault().getPath(resourcePath).toAbsolutePath();
@ -266,7 +265,6 @@ public static InputStream getResourceAsStream(String resourcePath,
catch (FileNotFoundException e) { catch (FileNotFoundException e) {
// just continue ... // just continue ...
} }
}
if (result == null) { if (result == null) {
try { try {
// Try relative to current working directory ... // Try relative to current working directory ...