Removed unnecessary check 03/28903/2
authorburdziak <olaf.burdziakowski@nokia.com>
Tue, 23 Jan 2018 10:17:35 +0000 (11:17 +0100)
committerTakamune Cho <tc012c@att.com>
Wed, 24 Jan 2018 23:52:29 +0000 (23:52 +0000)
Issue-ID: APPC-451

Change-Id: Iecc6c38ac2ad59f1912a88772c7284c9efb83f8e
Signed-off-by: burdziak <olaf.burdziakowski@nokia.com>
appc-directed-graph/dg-loader/provider/src/main/java/org/onap/sdnc/dg/loader/DGXMLLoad.java

index 4e7e574..1156815 100644 (file)
@@ -65,7 +65,7 @@ public class DGXMLLoad {
             List<String> errors = new ArrayList<String>();
             if (this.store != null) {
                 File xmlDir = new File(xmlPath);
-                if (xmlDir != null && xmlDir.isDirectory()) {
+                if (xmlDir.isDirectory()) {
                     String[] extensions = new String[] {"xml", "XML"};
                     List<File> files = (List<File>) FileUtils.listFiles(xmlDir, extensions, true);
                     for (File file : files) {