remove nested if (#268)

pull/275/head
Pomba Magar 9 months ago committed by GitHub
parent 4226d1eb85
commit 8976805721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save