diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-03-08 18:48:26 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-03-08 18:48:26 +0100 |
| commit | 36d1c4540af3ef058d68092e41af05aa4a8c5eca (patch) | |
| tree | 3657a5920e4b100749ccb9d2d555652e7b7e28e9 /pkg/host/host_linux.go | |
| parent | 63ef857906766b3cafe4aebc43bc38edf42096c3 (diff) | |
all: fix gometalinter warnings
Fix typos, non-canonical code, remove dead code, etc.
Diffstat (limited to 'pkg/host/host_linux.go')
| -rw-r--r-- | pkg/host/host_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go index 57ce3e79e..0d1cd9afc 100644 --- a/pkg/host/host_linux.go +++ b/pkg/host/host_linux.go @@ -55,7 +55,7 @@ func isSupported(sandbox string, kallsyms []byte, c *prog.Syscall) bool { if newname := kallsymsMap[name]; newname != "" { name = newname } - return bytes.Index(kallsyms, []byte(" T sys_"+name+"\n")) != -1 + return bytes.Contains(kallsyms, []byte(" T sys_"+name+"\n")) } // Some syscall names diverge in __NR_* consts and kallsyms. |
