diff --git a/api/rtc_error.h b/api/rtc_error.h index 1376793a0b..42ceed18d9 100644 --- a/api/rtc_error.h +++ b/api/rtc_error.h @@ -244,7 +244,7 @@ class RTCErrorOr { // // REQUIRES: !error.ok(). This requirement is DCHECKed. RTCErrorOr(RTCError&& error) : error_(std::move(error)) { // NOLINT - RTC_DCHECK(!error.ok()); + RTC_DCHECK(!error_.ok()); } // Constructs a new RTCErrorOr with the given value. After calling this