commit | a82eb4e2a5909d668d0b12eb3943908592945863 | [log] [tgz] |
---|---|---|
author | Björn Terelius <terelius@webrtc.org> | Mon Sep 02 16:13:30 2024 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Sep 03 07:11:25 2024 |
tree | b6eeaaccff4ed59bd2afc87acd5ae11c448871c9 | |
parent | 55ed9501d22f8f4e3b93714b790ef15ed3504314 [diff] |
Remove self assignment in if-clause 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 <kthelgason@webrtc.org> Commit-Queue: Kári Helgason <kthelgason@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42919}
diff --git a/sdk/objc/api/peerconnection/RTCIceCandidateErrorEvent.mm b/sdk/objc/api/peerconnection/RTCIceCandidateErrorEvent.mm index 573e306..cef03f2 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];