diff --git a/src/rcldb/stoplist.cpp b/src/rcldb/stoplist.cpp index e603441b..6f0b46fc 100644 --- a/src/rcldb/stoplist.cpp +++ b/src/rcldb/stoplist.cpp @@ -50,7 +50,7 @@ bool StopList::setFile(const string &filename) // faster than find() in this case. bool StopList::isStop(const string &term) const { - return m_stops.empty() ? false : m_stops.find(term) != m_stops.end(); + return !m_stops.empty() && m_stops.find(term) != m_stops.end(); } }