diff --git a/src/stream_cdf.c b/src/stream_cdf.c
index 46a86ad47ff7a1896a2a9ba222f5545b6afba463..df382e8a4623a991bdcf57a6486c03bd9e3c6362 100644
--- a/src/stream_cdf.c
+++ b/src/stream_cdf.c
@@ -166,14 +166,11 @@ int get_timeunit(size_t len, const char *ptu)
 static
 bool isTimeUnits(const char *timeunits)
 {
-  bool status = false;
-
-  if ( strncmp(timeunits, "sec",    3) == 0 ||
-       strncmp(timeunits, "minute", 6) == 0 ||
-       strncmp(timeunits, "hour",   4) == 0 ||
-       strncmp(timeunits, "day",    3) == 0 ||
-       strncmp(timeunits, "month",  5) == 0 ) status = true;
-
+  bool status = strncmp(timeunits, "sec",    3) == 0
+    || strncmp(timeunits, "minute", 6) == 0
+    || strncmp(timeunits, "hour",   4) == 0
+    || strncmp(timeunits, "day",    3) == 0
+    || strncmp(timeunits, "month",  5) == 0;
   return status;
 }