Skip to content

Commit 6e68113

Browse files
committed
fix: remove redundant null check for 'what' parameter in embedded static resources binding
1 parent 46c7140 commit 6e68113

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

core/src/main/java/org/restheart/Bootstrapper.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -848,11 +848,6 @@ private static void plugStaticResourcesHandlers(final Configuration conf) {
848848
File file;
849849

850850
if (sr.embedded()) {
851-
if (sr.what() == null) {
852-
LOGGER.error("Cannot bind embedded static resources {}. parameter 'what' is missing", sr);
853-
return;
854-
}
855-
856851
try {
857852
file = ResourcesExtractor.extract(Bootstrapper.class, sr.what());
858853

0 commit comments

Comments
 (0)