forked from quic-go/quic-go
make golint happier
This commit is contained in:
@@ -44,6 +44,8 @@ func (d Direction) String() string {
|
||||
}
|
||||
}
|
||||
|
||||
// Is says if one direction matches another direction.
|
||||
// For example, incoming matches both incoming and both, but not outgoing.
|
||||
func (d Direction) Is(dir Direction) bool {
|
||||
if d == DirectionBoth || dir == DirectionBoth {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user