Skip to content

Commit

Permalink
update class.cpp to avoid else after return (RosettaCommons#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
andriish authored and ldedier-gpfw committed Sep 16, 2024
1 parent eae458f commit b19d730
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 b19d730

Please sign in to comment.