From 19918b88b7b9fe6fc668847f31c94068c78ef2d1 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Wed, 24 Jan 2018 18:24:03 +0000 Subject: [PATCH] Golint fix with ro_layer.go A small golint fix with ro_layer.go. Signed-off-by: Yong Tang --- layer/ro_layer.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/layer/ro_layer.go b/layer/ro_layer.go index 29fa85362a..baa742e6e9 100644 --- a/layer/ro_layer.go +++ b/layer/ro_layer.go @@ -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) {