mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 20:57:36 +03:00
make golint happier
This commit is contained in:
parent
be2be3872f
commit
a588b9e140
8 changed files with 38 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue