mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
lint: replace loop append(x, y...)
This commit is contained in:
parent
a859c80b64
commit
06ba0903e7
1 changed files with 1 additions and 3 deletions
|
@ -146,9 +146,7 @@ func (d *Discovery) Show(by string) error {
|
||||||
|
|
||||||
rows := make([][]string, 0)
|
rows := make([][]string, 0)
|
||||||
for i, t := range targets {
|
for i, t := range targets {
|
||||||
for _, r := range d.getRow(t, hasMeta) {
|
rows = append(rows, d.getRow(t, hasMeta)...)
|
||||||
rows = append(rows, r)
|
|
||||||
}
|
|
||||||
if i == pad {
|
if i == pad {
|
||||||
rows = append(rows, padCols)
|
rows = append(rows, padCols)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue