Skip to content

Commit 48fe635

Browse files
committed
code optimization after review
Signed-off-by: Lifubang <[email protected]>
1 parent 1d9b969 commit 48fe635

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/ctr/commands/run/run_unix.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ import (
3535
func NewContainer(ctx gocontext.Context, client *containerd.Client, context *cli.Context) (containerd.Container, error) {
3636
var (
3737
id string
38-
Config = context.IsSet("config")
38+
config = context.IsSet("config")
3939
)
40-
if Config {
40+
if config {
4141
id = context.Args().First()
4242
} else {
4343
id = context.Args().Get(1)
@@ -57,7 +57,7 @@ func NewContainer(ctx gocontext.Context, client *containerd.Client, context *cli
5757
spec containerd.NewContainerOpts
5858
)
5959

60-
if Config {
60+
if config {
6161
opts = append(opts, oci.WithSpecFromFile(context.String("config")))
6262
} else {
6363
var (

0 commit comments

Comments
 (0)