DBZ-1621 Remove useless null check
This commit is contained in:
parent
91f0c2a520
commit
33384098fd
@ -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 ...
|
||||||
|
Loading…
Reference in New Issue
Block a user