mirror of
https://github.com/pion/webrtc.git
synced 2025-09-27 11:32:19 +08:00
Upgrade golangci-lint, more linters
Introduces new linters, upgrade golangci-lint to version (v1.63.4)
This commit is contained in:
@@ -18,11 +18,11 @@ func supportedNetworkTypes() []NetworkType {
|
||||
}
|
||||
}
|
||||
|
||||
// NetworkType represents the type of network
|
||||
// NetworkType represents the type of network.
|
||||
type NetworkType int
|
||||
|
||||
const (
|
||||
// NetworkTypeUnknown is the enum's zero-value
|
||||
// NetworkTypeUnknown is the enum's zero-value.
|
||||
NetworkTypeUnknown NetworkType = iota
|
||||
|
||||
// NetworkTypeUDP4 indicates UDP over IPv4.
|
||||
@@ -61,7 +61,7 @@ func (t NetworkType) String() string {
|
||||
}
|
||||
}
|
||||
|
||||
// Protocol returns udp or tcp
|
||||
// Protocol returns udp or tcp.
|
||||
func (t NetworkType) Protocol() string {
|
||||
switch t {
|
||||
case NetworkTypeUDP4:
|
||||
|
Reference in New Issue
Block a user