mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Remove unnecessary line
Signed-off-by: Daehyeok Mun <daehyeok@gmail.com>
This commit is contained in:
parent
e8abe0a69d
commit
145dfd924c
1 changed files with 1 additions and 3 deletions
|
@ -262,11 +262,9 @@ func (pm *Manager) Upgrade(ctx context.Context, ref reference.Named, name string
|
|||
defer pm.muGC.RUnlock()
|
||||
|
||||
// revalidate because Pull is public
|
||||
nameref, err := reference.ParseNormalizedNamed(name)
|
||||
if err != nil {
|
||||
if _, err := reference.ParseNormalizedNamed(name); err != nil {
|
||||
return errors.Wrapf(err, "failed to parse %q", name)
|
||||
}
|
||||
name = reference.FamiliarString(reference.TagNameOnly(nameref))
|
||||
|
||||
tmpRootFSDir, err := ioutil.TempDir(pm.tmpDir(), ".rootfs")
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue