Skip to content

Commit c8f0026

Browse files
committed
Use OK rather than err
Signed-off-by: luke <luke.parkin@arm.com>
1 parent b56d626 commit c8f0026

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/proxy/proxy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ func namespaceCloneFlags(spec *specs.Spec) (uintptr, error) {
3131
if ns.Path != "" {
3232
continue
3333
}
34-
flag, err := namespaceFlags[ns.Type]
35-
if err {
34+
flag, ok := namespaceFlags[ns.Type]
35+
if !ok {
3636
return 0, fmt.Errorf("Unknown namespace type %q", ns.Type)
3737
}
3838
flags |= flag

0 commit comments

Comments
 (0)