mirror of
https://github.com/vishvananda/netns
synced 2024-12-22 15:02:20 +00:00
remove redundant build-tag comments
- The "linux" build tags were redundant as they were in a _linux file - The project already states that go1.10 is a minimum (and long obsolete, so unlikely to be used still). - Format the remaining build-tags for current go versions. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
43aa913982
commit
22a9216d17
@ -23,6 +23,7 @@ import (
|
||||
"fmt"
|
||||
"net"
|
||||
"runtime"
|
||||
|
||||
"github.com/vishvananda/netns"
|
||||
)
|
||||
|
||||
|
2
netns.go
2
netns.go
@ -71,7 +71,7 @@ func (ns *NsHandle) Close() error {
|
||||
if err := unix.Close(int(*ns)); err != nil {
|
||||
return err
|
||||
}
|
||||
(*ns) = -1
|
||||
*ns = -1
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,3 @@
|
||||
//go:build linux && go1.10
|
||||
// +build linux,go1.10
|
||||
|
||||
package netns
|
||||
|
||||
import (
|
||||
|
@ -1,3 +1,4 @@
|
||||
//go:build !linux
|
||||
// +build !linux
|
||||
|
||||
package netns
|
||||
|
Loading…
Reference in New Issue
Block a user