Browse Source

Fix misuse of else if

renovate/configure
Yota Toyama 8 years ago
parent
commit
1354ec5f46
  1. 2
      file_result.go
  2. 2
      main.go

2
file_result.go

@ -28,7 +28,7 @@ func (r fileResult) String(verbose bool) string {
if r.err != nil {
xs = append(xs, s)
} else if r.err == nil && verbose {
} else if verbose {
os = append(os, s)
}
}

2
main.go

@ -22,7 +22,7 @@ func main() {
if !r.Ok() {
ok = false
printToStderr(r.String(args.verbose))
} else if r.Ok() && args.verbose {
} else if args.verbose {
printToStderr(r.String(true))
}
}

Loading…
Cancel
Save