From a82eb4e2a5909d668d0b12eb3943908592945863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Terelius?= Date: Mon, 2 Sep 2024 18:13:30 +0200 Subject: [PATCH] Remove self assignment in if-clause MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to https://webrtc-review.googlesource.com/c/src/+/360460 Bug: chromium:361594695 Change-Id: Id41d964871aa1c074145901af275b0fe004b8e7b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/361340 Reviewed-by: Kári Helgason Commit-Queue: Kári Helgason Cr-Commit-Position: refs/heads/main@{#42919} --- sdk/objc/api/peerconnection/RTCIceCandidateErrorEvent.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/objc/api/peerconnection/RTCIceCandidateErrorEvent.mm b/sdk/objc/api/peerconnection/RTCIceCandidateErrorEvent.mm index 573e30642b..cef03f2f43 100644 --- a/sdk/objc/api/peerconnection/RTCIceCandidateErrorEvent.mm +++ b/sdk/objc/api/peerconnection/RTCIceCandidateErrorEvent.mm @@ -29,7 +29,8 @@ url:(const std::string&)url errorCode:(const int)errorCode errorText:(const std::string&)errorText { - if (self = [self init]) { + self = [self init]; + if (self) { _address = [NSString stringForStdString:address]; _port = port; _url = [NSString stringForStdString:url];