Remove unnecessary json.Unmarshal wrapper.
Signed-off-by: Daniel Nephin <dnephin@docker.com> Upstream-commit: fb42e8477208badf0714a9d8ae20946a9b531dba Component: engine
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user