Cleanups and tidy fixes

This commit is contained in:
Fernando Jiménez Moreno 2020-06-02 10:52:34 +02:00
parent ace0d7795e
commit 960b010d30
8 changed files with 23 additions and 24 deletions

View file

@ -675,15 +675,9 @@ impl RTCPeerConnectionMethods for RTCPeerConnection {
fn CreateDataChannel(
&self,
label: USVString,
dataChannelDict: &RTCDataChannelInit,
init: &RTCDataChannelInit,
) -> DomRoot<RTCDataChannel> {
RTCDataChannel::new(
&self.global(),
&self.controller,
label,
dataChannelDict,
None,
)
RTCDataChannel::new(&self.global(), &self.controller, label, init, None)
}
}