Update server/images.go

Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
This commit is contained in:
Michael Yang 2023-11-15 15:15:36 -08:00
parent bc22d5a38b
commit 652d90e1c7

View file

@ -421,7 +421,7 @@ func CreateModel(ctx context.Context, name string, commands []parser.Command, fn
case "template", "system":
fn(api.ProgressResponse{Status: fmt.Sprintf("creating %s layer", c.Name)})
// remove duplicates layers
// remove duplicate layers
layers = removeLayerFromLayers(layers, mediatype)
layer, err := CreateLayer(strings.NewReader(c.Args))