forked from security/hakurei
container/std/seccomp: remove ineffectual typecast
This is no longer necessary since the return type changed. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -70,7 +70,7 @@ func (num *ScmpSyscall) UnmarshalJSON(data []byte) error {
|
||||
if n, ok := SyscallResolveName(name); !ok {
|
||||
return SyscallNameError(name)
|
||||
} else {
|
||||
*num = ScmpSyscall(n)
|
||||
*num = n
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user