Skip to content

Commit

Permalink
Redundant get() call on smart pointer
Browse files Browse the repository at this point in the history
I caught this ClangTide error while doing the import. Applied a quick fix here to follow the go/clang-tidy/checks/readability-redundant-smartptr-get.md.
  • Loading branch information
nanahpang authored Apr 20, 2020
1 parent b622f58 commit 990943e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ XdsRoutingLb::PickResult XdsRoutingLb::RoutePicker::Pick(PickArgs args) {
(path_elements[1] == route.matcher.method ||
route.matcher.method.empty())) ||
(route.matcher.service.empty() && route.matcher.method.empty())) {
return route.picker.get()->Pick(args);
return route.picker->Pick(args);
}
}
PickResult result;
Expand Down

0 comments on commit 990943e

Please sign in to comment.