From 8ace163608091804a42bd652b4b8bd7da3836f06 Mon Sep 17 00:00:00 2001 From: Azeem Sajid Date: Tue, 25 Feb 2025 10:49:28 +0500 Subject: [PATCH] Remove slicing --- pkg/cmd/gist/create/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/gist/create/create.go b/pkg/cmd/gist/create/create.go index 3eda8b0bd..defd57d95 100644 --- a/pkg/cmd/gist/create/create.go +++ b/pkg/cmd/gist/create/create.go @@ -88,7 +88,7 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co }, Aliases: []string{"new"}, RunE: func(c *cobra.Command, args []string) error { - opts.Filenames = args[:] + opts.Filenames = args if runF != nil { return runF(&opts)