diff --git a/pkg/cmd/gist/edit/edit.go b/pkg/cmd/gist/edit/edit.go index 097cfad6b..3480993f5 100644 --- a/pkg/cmd/gist/edit/edit.go +++ b/pkg/cmd/gist/edit/edit.go @@ -80,7 +80,7 @@ func editRun(opts *EditOptions) error { filesToUpdate := map[string]string{} - for true { + for { filename := opts.Filename candidates := []string{} for filename, _ := range gist.Files {