mirror of
https://github.com/vishvananda/netns
synced 2025-01-03 13:02:17 +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"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"github.com/vishvananda/netns"
|
"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 {
|
if err := unix.Close(int(*ns)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
(*ns) = -1
|
*ns = -1
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,3 @@
|
|||||||
//go:build linux && go1.10
|
|
||||||
// +build linux,go1.10
|
|
||||||
|
|
||||||
package netns
|
package netns
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
//go:build !linux
|
||||||
// +build !linux
|
// +build !linux
|
||||||
|
|
||||||
package netns
|
package netns
|
||||||
|
Loading…
Reference in New Issue
Block a user