Skip to content

Commit bb50cad

Browse files
laramielcopybara-github
authored andcommitted
Use GetStatus in IsOkAndHoldsMatcher
PiperOrigin-RevId: 651093644 Change-Id: Ia5bb3343ef06529d5fa2d469bcad47451ea79c69
1 parent 6dee153 commit bb50cad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

absl/status/internal/status_matchers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ class IsOkAndHoldsMatcherImpl
6969
bool MatchAndExplain(
7070
StatusOrType actual_value,
7171
::testing::MatchResultListener* result_listener) const override {
72-
if (!actual_value.ok()) {
73-
*result_listener << "which has status " << actual_value.status();
72+
if (!GetStatus(actual_value).ok()) {
73+
*result_listener << "which has status " << GetStatus(actual_value);
7474
return false;
7575
}
7676

0 commit comments

Comments
 (0)