Skip to content

Commit a27acd6

Browse files
committed
cli/command/container/create: pullImage() remove intermediate vars
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent e0b47cc commit a27acd6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

cli/command/container/create.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,10 @@ func pullImage(ctx context.Context, dockerCli command.Cli, image string, platfor
131131
return err
132132
}
133133

134-
options := types.ImageCreateOptions{
134+
responseBody, err := dockerCli.Client().ImageCreate(ctx, image, types.ImageCreateOptions{
135135
RegistryAuth: encodedAuth,
136136
Platform: platform,
137-
}
138-
139-
responseBody, err := dockerCli.Client().ImageCreate(ctx, image, options)
137+
})
140138
if err != nil {
141139
return err
142140
}

0 commit comments

Comments
 (0)