chore: make deps
This commit is contained in:
7
vendor/github.com/prometheus/procfs/net_dev_snmp6.go
generated
vendored
7
vendor/github.com/prometheus/procfs/net_dev_snmp6.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// Copyright 2018 The Prometheus Authors
|
||||
// Copyright The Prometheus Authors
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
@ -18,6 +18,7 @@ import (
|
||||
"errors"
|
||||
"io"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
@ -56,7 +57,9 @@ func newNetDevSNMP6(dir string) (NetDevSNMP6, error) {
|
||||
}
|
||||
|
||||
for _, iFaceFile := range ifaceFiles {
|
||||
f, err := os.Open(dir + "/" + iFaceFile.Name())
|
||||
filePath := filepath.Join(dir, iFaceFile.Name())
|
||||
|
||||
f, err := os.Open(filePath)
|
||||
if err != nil {
|
||||
return netDevSNMP6, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user