Commit 19b63e4f authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Abbreviate assignment.

parent 2c3f18da
......@@ -538,10 +538,7 @@ const char *gridNamePtr(int gridtype)
const char *name;
int size = (int) (sizeof(Grids)/sizeof(char *));
if ( gridtype >= 0 && gridtype < size )
name = Grids[gridtype];
else
name = Grids[GRID_GENERIC];
name = gridtype >= 0 && gridtype < size ? Grids[gridtype] : Grids[GRID_GENERIC];
return (name);
}
......
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