Skip to content

Commit

Permalink
lnstat: linter fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksei Zakharov <zaharov@selectel.ru>
  • Loading branch information
AlexZzz committed Jul 3, 2020
1 parent 3119497 commit 579e69c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lnstat.go
Expand Up @@ -50,9 +50,7 @@ func (fs FS) Lnstat() ([]Lnstats, error) {
scanner.Scan()
// First string is always a header for stats
var headers []string
for _, header := range strings.Fields(scanner.Text()) {
headers = append(headers, header)
}
headers = append(headers, strings.Fields(scanner.Text())...)

// Other strings represent per-CPU counters
for scanner.Scan() {
Expand Down

0 comments on commit 579e69c

Please sign in to comment.