mirror of
https://github.com/antonmedv/fx.git
synced 2024-08-17 06:00:32 +03:00
remove nested if (#268)
This commit is contained in:
parent
4226d1eb85
commit
8976805721
10
reduce.go
10
reduce.go
@ -24,14 +24,12 @@ func reduce(fns []string) {
|
||||
deno := false
|
||||
bin, err := exec.LookPath("node")
|
||||
if err != nil {
|
||||
bin, err = exec.LookPath("deno")
|
||||
if err != nil {
|
||||
bin, err = exec.LookPath("deno")
|
||||
if err != nil {
|
||||
_, _ = fmt.Fprintf(os.Stderr, "Node.js or Deno is required to run fx with reducers.\n")
|
||||
os.Exit(1)
|
||||
}
|
||||
deno = true
|
||||
_, _ = fmt.Fprintf(os.Stderr, "Node.js or Deno is required to run fx with reducers.\n")
|
||||
os.Exit(1)
|
||||
}
|
||||
deno = true
|
||||
}
|
||||
|
||||
env := os.Environ()
|
||||
|
Loading…
Reference in New Issue
Block a user