]> git.kaiwu.me - njs.git/commitdiff
Removed dead code in njs_typed_array_get() after 1c3c593cc3fd.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 9 Jan 2020 12:54:16 +0000 (15:54 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Thu, 9 Jan 2020 12:54:16 +0000 (15:54 +0300)
Found by Coverity (CID 1457372).

src/njs_typed_array.h

index daed1684993eb0ff9ecdcbfa0bf48d11e1d042a7..4a99b1beb08000cba77746e88913db19f66b5c19 100644 (file)
@@ -86,8 +86,6 @@ njs_typed_array_get(const njs_typed_array_t *array, uint32_t index)
 
         return buffer->u.f64[index];
     }
-
-    return NAN;
 }