From b19d730d2ecf1bc340abf9ecd998c308535a6ba6 Mon Sep 17 00:00:00 2001 From: andriish Date: Fri, 12 Apr 2024 21:21:28 +0200 Subject: [PATCH] update class.cpp to avoid else after return (#291) --- source/class.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/class.cpp b/source/class.cpp index b9f98f38..b4039869 100644 --- a/source/class.cpp +++ b/source/class.cpp @@ -700,7 +700,7 @@ if (overload) {{ static pybind11::detail::override_caster_t<{3}> caster; return pybind11::detail::cast_ref<{3}>(std::move(o), caster); }} - else return pybind11::detail::cast_safe<{3}>(std::move(o)); + return pybind11::detail::cast_safe<{3}>(std::move(o)); }} )_";