diff options
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/csource/options.go | 4 | ||||
| -rw-r--r-- | pkg/symbolizer/addr2line.go | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/pkg/csource/options.go b/pkg/csource/options.go index 02e39980a..74d4a587a 100644 --- a/pkg/csource/options.go +++ b/pkg/csource/options.go @@ -125,11 +125,11 @@ func (opts Options) checkLinuxOnly(OS string) error { if OS == targets.Linux { return nil } - if opts.NetInjection && (OS != targets.OpenBSD && OS != targets.FreeBSD && OS != targets.NetBSD) { + if opts.NetInjection && OS != targets.OpenBSD && OS != targets.FreeBSD && OS != targets.NetBSD { return fmt.Errorf("option NetInjection is not supported on %v", OS) } if opts.Sandbox == sandboxNamespace || - (opts.Sandbox == sandboxSetuid && (OS != targets.OpenBSD && OS != targets.FreeBSD && OS != targets.NetBSD)) || + (opts.Sandbox == sandboxSetuid && OS != targets.OpenBSD && OS != targets.FreeBSD && OS != targets.NetBSD) || opts.Sandbox == sandboxAndroid { return fmt.Errorf("option Sandbox=%v is not supported on %v", opts.Sandbox, OS) } diff --git a/pkg/symbolizer/addr2line.go b/pkg/symbolizer/addr2line.go index 35cbfbe98..0cef4847b 100644 --- a/pkg/symbolizer/addr2line.go +++ b/pkg/symbolizer/addr2line.go @@ -137,7 +137,6 @@ func parse(interner *Interner, s *bufio.Scanner) ([]Frame, error) { } var frames []Frame for s.Scan() { - ln := s.Text() if len(ln) > 3 && ln[0] == '0' && ln[1] == 'x' { break |
