remove nested if (#268)

This commit is contained in:
Pomba Magar 2023-09-20 13:15:57 +05:45 committed by GitHub
parent 4226d1eb85
commit 8976805721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()