Simplify code

This commit is contained in:
Tobias Schmidt 2017-02-28 13:32:41 -04:00
commit 21e13c7f52
3 changed files with 3 additions and 3 deletions

View file

@ -124,7 +124,7 @@ func parseMemInfoNuma(r io.Reader) ([]meminfoMetric, error) {
var (
memInfo []meminfoMetric
scanner = bufio.NewScanner(r)
re = regexp.MustCompile("\\((.*)\\)")
re = regexp.MustCompile(`\((.*)\)`)
)
for scanner.Scan() {