Skip to content

Commit

Permalink
Fix a clang-tidy issue: do not use 'else' after 'return'
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir authored and Ralf W. Grosse-Kunstleve committed Dec 5, 2022
1 parent f2261f1 commit 67bcb1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/pybind11/detail/type_caster_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -1011,9 +1011,8 @@ PYBIND11_NOINLINE std::string type_info_description(const std::type_info &ti) {
handle th((PyObject *) type_data->type);
return th.attr("__module__").cast<std::string>() + '.'
+ th.attr("__qualname__").cast<std::string>();
} else {
return clean_type_id(ti.name());
}
return clean_type_id(ti.name());
}

PYBIND11_NAMESPACE_END(detail)
Expand Down

0 comments on commit 67bcb1f

Please sign in to comment.