Remove unnecessary json.Unmarshal wrapper.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: fb42e8477208badf0714a9d8ae20946a9b531dba
Component: engine
This commit is contained in:
Daniel Nephin
2016-08-04 12:17:37 -04:00
parent 1c5ac9c7e1
commit 2b0a71c4f1
8 changed files with 16 additions and 43 deletions

View File

@ -867,7 +867,7 @@ var errMountNotFound = errors.New("mount point not found")
func inspectMountPointJSON(j, destination string) (types.MountPoint, error) {
var mp []types.MountPoint
if err := unmarshalJSON([]byte(j), &mp); err != nil {
if err := json.Unmarshal([]byte(j), &mp); err != nil {
return types.MountPoint{}, err
}