Explorar el Código

meta: remove pointless check

skypjack hace 1 año
padre
commit
22347cfbd0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/entt/meta/meta.hpp

+ 1 - 1
src/entt/meta/meta.hpp

@@ -1540,7 +1540,7 @@ private:
 }
 
 [[nodiscard]] inline meta_type meta_any::type() const noexcept {
-    return (node.info != nullptr) ? meta_type{*ctx, node} : meta_type{};
+    return meta_type{*ctx, node};
 }
 
 template<typename... Args>