projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c937aa7
)
Simplify code a bit.
author
Ward Vandewege <ward@curii.com>
Fri, 2 Apr 2021 01:09:41 +0000
(21:09 -0400)
committer
Ward Vandewege <ward@curii.com>
Fri, 2 Apr 2021 01:09:41 +0000
(21:09 -0400)
refs #17503
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>
lib/deduplicationreport/report.go
patch
|
blob
|
history
diff --git
a/lib/deduplicationreport/report.go
b/lib/deduplicationreport/report.go
index d01d20fd7d830402c51b3051c0c29a3dbd47ec15..bb3405a493e987b31e53aa0168e112d68b2694e2 100644
(file)
--- a/
lib/deduplicationreport/report.go
+++ b/
lib/deduplicationreport/report.go
@@
-106,12
+106,11
@@
func report(prog string, args []string, logger *logrus.Logger, stdout, stderr io
var err error
inputs, err = parseFlags(prog, args, logger, stderr)
- if err != nil {
- if err != flag.ErrHelp {
- logger.Error(err.Error())
- return 2
- }
+ if err == flag.ErrHelp {
return 0
+ } else if err != nil {
+ logger.Error(err.Error())
+ return 2
}
// Arvados Client setup