Commit a830e9ac authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Move more probable to if part of switch.

parent 82f2f0a4
......@@ -4468,14 +4468,17 @@ int varDefGrid(int vlistID, const grid_t *grid, int mode)
for (unsigned index = 0; index < ngrids; index++ )
{
gridID = vlistptr->gridIDs[index];
if ( gridID == UNDEFID )
Error("Internal problem: undefined gridID %d!", gridID);
if ( gridID != UNDEFID )
{
if ( gridCompare(gridID, grid) == 0 )
{
griddefined = TRUE;
break;
}
}
else
Error("Internal problem: undefined gridID %d!", gridID);
if ( gridCompare(gridID, grid) == 0 )
{
griddefined = TRUE;
break;
}
}
if ( ! griddefined )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment