Skip to content

Commit 8c66127

Browse files
author
Amir
committed
Fix a clang-tidy issue: do not use 'else' after 'return'
1 parent 1b45405 commit 8c66127

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/pybind11/detail/type_caster_base.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -1011,9 +1011,8 @@ PYBIND11_NOINLINE std::string type_info_description(const std::type_info &ti) {
10111011
handle th((PyObject *) type_data->type);
10121012
return th.attr("__module__").cast<std::string>() + '.'
10131013
+ th.attr("__qualname__").cast<std::string>();
1014-
} else {
1015-
return clean_type_id(ti.name());
10161014
}
1015+
return clean_type_id(ti.name());
10171016
}
10181017

10191018
PYBIND11_NAMESPACE_END(detail)

0 commit comments

Comments
 (0)