diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2018-01-15 00:42:25 +0100 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2018-01-15 00:42:25 +0100 |
commit | b4a63139696aea2c73ec361a9af8b36a118f0423 (patch) | |
tree | 60618aa0c95589570e08a01024c06e61a06de1e8 /layer/migration.go | |
parent | 63a0e88e8a61b5c0d5f698d5baf37f568ee01d50 (diff) | |
download | docker-b4a63139696aea2c73ec361a9af8b36a118f0423.tar.gz |
Golint: remove redundant ifs
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
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) { |