From d9404fcce45be6a95d697fb2229e77e5ac8bb0c4 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 28 Jul 2024 10:12:56 +0900 Subject: [PATCH] Remove stale comment --- src/core.go | 2 +- src/reader.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core.go b/src/core.go index 6442481c855..e0e02714673 100644 --- a/src/core.go +++ b/src/core.go @@ -148,8 +148,8 @@ func Run(opts *Options) (int, error) { // Terminal I/O var terminal *Terminal - var initialEnv []string var err error + var initialEnv []string initialReload := opts.extractReloadOnStart() if opts.Filter == nil { terminal, err = NewTerminal(opts, eventBox, executor) diff --git a/src/reader.go b/src/reader.go index ccaf8c62412..ecdf509c6d9 100644 --- a/src/reader.go +++ b/src/reader.go @@ -123,7 +123,6 @@ func (r *Reader) ReadSource(inputChan chan string, root string, opts walkerOpts, if len(cmd) == 0 { success = r.readFiles(root, opts, ignores) } else { - // We can't export FZF_* environment variables to the default command success = r.readFromCommand(cmd, initEnv) } } else {