Skip to content

Commit 5bae0b9

Browse files
committed
generate/seccomp: remove double package import
The same package is imported twice for no reason. Reported by staticcheck: > generate/seccomp/seccomp_default.go:6:2: ST1019: package "github.com/opencontainers/runtime-spec/specs-go" is being imported more than once (staticcheck) > "github.com/opencontainers/runtime-spec/specs-go" > ^ >generate/seccomp/seccomp_default.go:7:2: ST1019(related information): other import of "github.com/opencontainers/runtime-spec/specs-go" (staticcheck) > rspec "github.com/opencontainers/runtime-spec/specs-go" Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 59d9b89 commit 5bae0b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

generate/seccomp/seccomp_default.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package seccomp
33
import (
44
"runtime"
55

6-
"github.com/opencontainers/runtime-spec/specs-go"
76
rspec "github.com/opencontainers/runtime-spec/specs-go"
87
)
98

@@ -31,7 +30,7 @@ func arches() []rspec.Arch {
3130
}
3231

3332
// DefaultProfile defines the whitelist for the default seccomp profile.
34-
func DefaultProfile(rs *specs.Spec) *rspec.LinuxSeccomp {
33+
func DefaultProfile(rs *rspec.Spec) *rspec.LinuxSeccomp {
3534
syscalls := []rspec.LinuxSyscall{
3635
{
3736
Names: []string{

0 commit comments

Comments
 (0)