Skip to content

Commit

Permalink
cli/charger: hide empty features
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Jul 1, 2024
1 parent c9453c2 commit 2d72a29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/dumper.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@ func (d *dumper) Dump(name string, v interface{}) {
// features

if v, ok := v.(api.FeatureDescriber); ok {
ff := v.Features()
fmt.Fprintf(w, "Features:\t%v\n", ff)
if ff := v.Features(); len(ff) > 0 {
fmt.Fprintf(w, "Features:\t%v\n", ff)
}
}

w.Flush()
Expand Down

0 comments on commit 2d72a29

Please sign in to comment.