summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-07-28 10:12:56 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-07-28 10:13:41 +0900
commitd9404fcce45be6a95d697fb2229e77e5ac8bb0c4 (patch)
treef18cb6087aec43bb5fb75019f15714eb57479dc8
parent5c01fee5a9aee909611307a308c44fe94a9820e4 (diff)
Remove stale comment
-rw-r--r--src/core.go2
-rw-r--r--src/reader.go1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/core.go b/src/core.go
index 6442481c..e0e02714 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 ccaf8c62..ecdf509c 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 {