Commit 60a0aec5 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Instead of called function switch arguments instead.

parent d677659b
......@@ -53,9 +53,8 @@ void gribContainersDelete(stream_t * streamptr);
#ifdef HAVE_LIBGRIBAPI
static inline void *gribHandleNew(int editionNumber)
{
void *gh = (editionNumber == 1) ?
(void *) grib_handle_new_from_samples(NULL, "GRIB1") :
(void *) grib_handle_new_from_samples(NULL, "GRIB2");
void *gh =
(void *)grib_handle_new_from_samples(NULL, (editionNumber == 1) ? "GRIB1" : "GRIB2");
if ( gh == NULL ) Error("grib_handle_new_from_samples failed!");
return gh;
......
Markdown is supported
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