diff --git a/include/caosdb/value.h b/include/caosdb/value.h
index e6ca1f33bcd43ce41acd44e4244c8d3825b43ebe..6031e75dbd69c262cc69079c63323d916cec223d 100644
--- a/include/caosdb/value.h
+++ b/include/caosdb/value.h
@@ -63,11 +63,9 @@ public:
     return (this->wrapped->scalar_value_case() == ScalarValueCase::kStringValue) ||
            (this->wrapped->scalar_value_case() == ScalarValueCase::kSpecialValue &&
             this->wrapped->special_value() == ProtoSpecialValue::SPECIAL_VALUE_EMPTY_STRING);
-    return false;
   }
   [[nodiscard]] inline auto AsString() const noexcept -> const std::string & {
     return this->wrapped->string_value();
-    ;
   }
 
   [[nodiscard]] inline auto IsDouble() const noexcept -> bool {