Remove unnecessary conversions

This commit is contained in:
Tobias Schmidt 2017-02-28 13:42:43 -04:00
commit 694294baf5
9 changed files with 13 additions and 14 deletions

View file

@ -85,7 +85,7 @@ func parseSockStats(r io.Reader, fileName string) (map[string]map[string]string,
)
for scanner.Scan() {
line := strings.Split(string(scanner.Text()), " ")
line := strings.Split(scanner.Text(), " ")
// Remove trailing ':'.
protocol := line[0][:len(line[0])-1]
sockStat[protocol] = map[string]string{}