Don't duplicate this code. Just skip the actual use of the candidate if iceTransports is set to relay and the candidate is non-relay.