mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
*: clean up remaining golangci-lint failures
Most of these were false positives or cases where we want to ignore the lint, but the change to the BPF generation is actually useful. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
@@ -106,14 +106,6 @@ var testArches = []string{
|
||||
"s390x",
|
||||
}
|
||||
|
||||
func archStringToNative(arch string) (nativeArch, error) {
|
||||
scmpArch, err := libseccomp.GetArchFromString(arch)
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("unknown architecture %q: %v", arch, err)
|
||||
}
|
||||
return archToNative(scmpArch)
|
||||
}
|
||||
|
||||
func testEnosysStub(t *testing.T, defaultAction configs.Action, arches []string) {
|
||||
explicitSyscalls := []string{
|
||||
"setns",
|
||||
|
||||
Reference in New Issue
Block a user