diff options
Diffstat (limited to 'layer/migration.go')
-rw-r--r-- | layer/migration.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/layer/migration.go b/layer/migration.go index f4c4adec4a..9c0c2c94ed 100644 --- a/layer/migration.go +++ b/layer/migration.go @@ -68,11 +68,7 @@ func (ls *layerStore) CreateRWLayerByGraphID(name string, graphID string, parent m.initID = initID } - if err = ls.saveMount(m); err != nil { - return err - } - - return nil + return ls.saveMount(m) } func (ls *layerStore) ChecksumForGraphID(id, parent, oldTarDataPath, newTarDataPath string) (diffID DiffID, size int64, err error) { |