1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Golint fix with ro_layer.go

A small golint fix with ro_layer.go.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang 2018-01-24 18:24:03 +00:00
parent f909bf3590
commit 19918b88b7

View file

@ -142,11 +142,7 @@ func storeLayer(tx MetadataTransaction, layer *roLayer) error {
return err
}
}
if err := tx.setOS(layer.layerStore.os); err != nil {
return err
}
return nil
return tx.setOS(layer.layerStore.os)
}
func newVerifiedReadCloser(rc io.ReadCloser, dgst digest.Digest) (io.ReadCloser, error) {