IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 6, 2004, 12:34:06 PM (22 years ago)
Author:
desonia
Message:

astyle fixed?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astronomy/psMetadata.c

    r1398 r1406  
    1111*  @author Ross Harman, MHPCC
    1212*
    13 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    14 *  @date $Date: 2004-08-05 23:39:23 $
     13*  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     14*  @date $Date: 2004-08-06 22:34:05 $
    1515*
    1616*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    280280            return false;
    281281        }
    282     } else if(value != NULL) {
    283 
    284         // The key was found and the new metadata item is a folder node. Don't add new metadata item, since
    285         // it will wipe out existing node.
    286         psError( __func__, "Metadata already exists in metadata collection. Item not added. Name: %s",
    287                  metadataItem->name );
    288         return false;
    289     } else {
    290 
    291         // Duplicate key not found. Add new metadata item to metadata collection's hash
    292         if(!psHashAdd( mdTable, key, metadataItem )) {
    293             psError( __func__, "Couldn't add metadata item to metadata collection table. Name: %s",
     282    } else
     283        if(value != NULL) {
     284
     285            // The key was found and the new metadata item is a folder node. Don't add new metadata item, since
     286            // it will wipe out existing node.
     287            psError( __func__, "Metadata already exists in metadata collection. Item not added. Name: %s",
    294288                     metadataItem->name );
    295289            return false;
    296         }
    297     }
     290        } else {
     291
     292            // Duplicate key not found. Add new metadata item to metadata collection's hash
     293            if(!psHashAdd( mdTable, key, metadataItem )) {
     294                psError( __func__, "Couldn't add metadata item to metadata collection table. Name: %s",
     295                         metadataItem->name );
     296                return false;
     297            }
     298        }
    298299
    299300    // Add all items to metadata collection's list, even if they have the same metadata item names
     
    612613        psError( __func__, "Null extName and extNum = 0 not allowed" );
    613614        return NULL;
    614     } else if(extName && extNum) {
    615         psError( __func__, "Both extName and extNum arguments should not have non zero values." );
    616         return NULL;
    617     }
     615    } else
     616        if(extName && extNum) {
     617            psError( __func__, "Both extName and extNum arguments should not have non zero values." );
     618            return NULL;
     619        }
    618620
    619621    // Allocate metadata if user didn't
Note: See TracChangeset for help on using the changeset viewer.