agangam commented on code in PR #5:
URL: 
https://github.com/apache/sling-org-apache-sling-commons-mime/pull/5#discussion_r1008388948


##########
src/main/java/org/apache/sling/commons/mime/internal/MimeTypeServiceImpl.java:
##########
@@ -166,9 +166,17 @@ public void registerMimeType(String mimeType, String... 
extensions) {
 
             }
         }
+        addToExtensions(defaultExtension, mimeType, extensions);
+    }
 
+    private void addToExtensions(String defaultExtension, String mimeType, 
String[] extensions) {

Review Comment:
   Good suggestions, I have simplified the code



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to