Skip to content

Commit

Permalink
Slightly reduce indention in getResources
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz committed Aug 21, 2023
1 parent f820ede commit 712ea36
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,13 @@ public URL getResource(String resourceName) {
@Override
public Enumeration<URL> getResources(String resourceName) throws IOException {
String className = resourceToClassName(resourceName);
if (className != null) {
URL resource = getResource(resourceName);
List<URL> result =
resource != null ? Collections.singletonList(resource) : Collections.emptyList();
return Collections.enumeration(result);
if (className == null) {
return super.getResources(resourceName);
}
return super.getResources(resourceName);
URL resource = getResource(resourceName);
List<URL> result =
resource != null ? Collections.singletonList(resource) : Collections.emptyList();
return Collections.enumeration(result);
}

@Nullable
Expand Down

0 comments on commit 712ea36

Please sign in to comment.