mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #28749 from runcom/remove-notneeded-unmarshal
daemon: remove not needed unmarshal
This commit is contained in:
commit
bbe1a7f84f
1 changed files with 0 additions and 7 deletions
|
@ -4,7 +4,6 @@ package daemon
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
|
@ -1281,12 +1280,6 @@ func (daemon *Daemon) setupSeccompProfile() error {
|
|||
return fmt.Errorf("opening seccomp profile (%s) failed: %v", daemon.configStore.SeccompProfile, err)
|
||||
}
|
||||
daemon.seccompProfile = b
|
||||
p := struct {
|
||||
DefaultAction string `json:"defaultAction"`
|
||||
}{}
|
||||
if err := json.Unmarshal(daemon.seccompProfile, &p); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue