1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

daemon: remove not needed unmarshal

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-11-23 12:53:25 +01:00
parent 5afdacb20e
commit 30b8712e93
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9

View file

@ -4,7 +4,6 @@ package daemon
import ( import (
"bytes" "bytes"
"encoding/json"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"net" "net"
@ -1281,12 +1280,6 @@ func (daemon *Daemon) setupSeccompProfile() error {
return fmt.Errorf("opening seccomp profile (%s) failed: %v", daemon.configStore.SeccompProfile, err) return fmt.Errorf("opening seccomp profile (%s) failed: %v", daemon.configStore.SeccompProfile, err)
} }
daemon.seccompProfile = b daemon.seccompProfile = b
p := struct {
DefaultAction string `json:"defaultAction"`
}{}
if err := json.Unmarshal(daemon.seccompProfile, &p); err != nil {
return err
}
} }
return nil return nil
} }