From 8477b5f5bedfc4e8437c64d6f6937203eb7b17ab Mon Sep 17 00:00:00 2001 From: Greg Miller <9447643+devjgm@users.noreply.github.com> Date: Fri, 19 Nov 2021 13:01:13 -0500 Subject: [PATCH] PR comments --- google/cloud/stream_range.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google/cloud/stream_range.h b/google/cloud/stream_range.h index 7f48ff3b56a0e..b980436bb5c00 100644 --- a/google/cloud/stream_range.h +++ b/google/cloud/stream_range.h @@ -177,16 +177,17 @@ class StreamRange { StreamRange& sr; void operator()(Status&& status) { sr.is_end_ = status.ok(); + sr.current_ok_ = status.ok(); if (!status.ok()) sr.current_ = std::move(status); } void operator()(T&& t) { sr.is_end_ = false; + sr.current_ok_ = true; sr.current_ = std::move(t); } }; auto v = reader_(); absl::visit(UnpackVariant{*this}, std::move(v)); - current_ok_ = current_.ok(); } template