diff --git a/stan/math/prim/fun/determinant.hpp b/stan/math/prim/fun/determinant.hpp index b879d5e9812..fb26b80e2a5 100644 --- a/stan/math/prim/fun/determinant.hpp +++ b/stan/math/prim/fun/determinant.hpp @@ -20,10 +20,6 @@ namespace math { template * = nullptr> inline value_type_t determinant(const T& m) { check_square("determinant", "m", m); - if (m.size() == 0) { - return 1; - } - return m.determinant(); }