Skip to content

Commit 5cf296f

Browse files
committed
Fix linter issue
1 parent db94c9b commit 5cf296f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

cmd/info.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,17 @@ Show summary for a given account:
122122
for v := range ch {
123123
if v.Err != nil {
124124
return v.Err
125-
} else {
126-
rows = append(rows, []string{v.Obj, strconv.Itoa(v.Count)})
127125
}
126+
rows = append(rows, []string{v.Obj, strconv.Itoa(v.Count)})
128127
}
129128
render.AsTable(out, heading, rows, renderOpts)
130129
} else {
131130
m := map[string]int{}
132131
for v := range ch {
133132
if v.Err != nil {
134133
return v.Err
135-
} else {
136-
m[v.Obj] = v.Count
137134
}
135+
m[v.Obj] = v.Count
138136
}
139137
jsonOutput := output{
140138
AccountEntry: account,

0 commit comments

Comments
 (0)