Skip to content

Commit

Permalink
remove unneeded assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
lock14 committed Feb 14, 2024
1 parent 510003e commit fe85f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ func (c *BaseCommand) Pipe() (stdin, stdout, stderr *bytes.Buffer) {
// return value indicates whether the value was set.
func (c *BaseCommand) LookupEnv(key string) (string, bool) {
if v := c.lookupEnv; v != nil {
return c.lookupEnv(key)
return v(key)
}
return os.LookupEnv(key)
}
Expand Down

0 comments on commit fe85f0f

Please sign in to comment.