mirror of
https://github.com/bettercap/bettercap
synced 2025-07-30 19:50:06 -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)
|
||||
for i, t := range targets {
|
||||
for _, r := range d.getRow(t, hasMeta) {
|
||||
rows = append(rows, r)
|
||||
}
|
||||
rows = append(rows, d.getRow(t, hasMeta)...)
|
||||
if i == pad {
|
||||
rows = append(rows, padCols)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue