cosmetic: remove dead code
authorStefan Seifert <sseifert@apache.org>
Tue, 9 May 2017 12:37:12 +0000 (12:37 +0000)
committerStefan Seifert <sseifert@apache.org>
Tue, 9 May 2017 12:37:12 +0000 (12:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1794555 13f79535-47bb-0310-9956-ffa450edef68

src/main/java/org/apache/sling/models/impl/via/AbstractResourceTypeViaProvider.java

index 5445438..7f8b11c 100644 (file)
@@ -38,9 +38,6 @@ public abstract class AbstractResourceTypeViaProvider implements ViaProvider {
         }
          if (original instanceof Resource) {
             final Resource resource = (Resource) original;
-            if (resource == null) {
-                return null;
-            }
             final String resourceType = getResourceType(resource, value);
             if (resourceType == null) {
                 log.warn("Could not determine forced resource type for {} using via value {}.", resource, value);