浏览代码

Remove comment that is no longer relevant

The #42511 PR removed layer store indexing by OS but this comment was left behind

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
Djordje Lukic 3 年之前
父节点
当前提交
7b277f62cc
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      daemon/images/service.go

+ 0 - 2
daemon/images/service.go

@@ -140,8 +140,6 @@ func (i *ImageService) CreateLayer(container *container.Container, initFunc laye
 		StorageOpt: container.HostConfig.StorageOpt,
 	}
 
-	// Indexing by OS is safe here as validation of OS has already been performed in create() (the only
-	// caller), and guaranteed non-nil
 	return i.layerStore.CreateRWLayer(container.ID, layerID, rwLayerOpts)
 }