Skip to content

Commit

Permalink
update class.cpp to avoid else after return (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
andriish authored Apr 12, 2024
1 parent 1236eb2 commit c58245b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}}
)_";

Expand Down

0 comments on commit c58245b

Please sign in to comment.