Index: trunk/psLib/src/astronomy/psMetadata.c
===================================================================
--- trunk/psLib/src/astronomy/psMetadata.c	(revision 1398)
+++ trunk/psLib/src/astronomy/psMetadata.c	(revision 1406)
@@ -11,6 +11,6 @@
 *  @author Ross Harman, MHPCC
 *
-*  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-08-05 23:39:23 $
+*  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-08-06 22:34:05 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -280,20 +280,21 @@
             return false;
         }
-    } else if(value != NULL) {
-
-        // The key was found and the new metadata item is a folder node. Don't add new metadata item, since
-        // it will wipe out existing node.
-        psError( __func__, "Metadata already exists in metadata collection. Item not added. Name: %s",
-                 metadataItem->name );
-        return false;
-    } else {
-
-        // Duplicate key not found. Add new metadata item to metadata collection's hash
-        if(!psHashAdd( mdTable, key, metadataItem )) {
-            psError( __func__, "Couldn't add metadata item to metadata collection table. Name: %s",
+    } else
+        if(value != NULL) {
+
+            // The key was found and the new metadata item is a folder node. Don't add new metadata item, since
+            // it will wipe out existing node.
+            psError( __func__, "Metadata already exists in metadata collection. Item not added. Name: %s",
                      metadataItem->name );
             return false;
-        }
-    }
+        } else {
+
+            // Duplicate key not found. Add new metadata item to metadata collection's hash
+            if(!psHashAdd( mdTable, key, metadataItem )) {
+                psError( __func__, "Couldn't add metadata item to metadata collection table. Name: %s",
+                         metadataItem->name );
+                return false;
+            }
+        }
 
     // Add all items to metadata collection's list, even if they have the same metadata item names
@@ -612,8 +613,9 @@
         psError( __func__, "Null extName and extNum = 0 not allowed" );
         return NULL;
-    } else if(extName && extNum) {
-        psError( __func__, "Both extName and extNum arguments should not have non zero values." );
-        return NULL;
-    }
+    } else
+        if(extName && extNum) {
+            psError( __func__, "Both extName and extNum arguments should not have non zero values." );
+            return NULL;
+        }
 
     // Allocate metadata if user didn't
