Skip to content

Commit f187d47

Browse files
committed
Signed-off-by: jiajian.chi <jiajian.chi@zstack.io>
On branch fixFibrechannel Changes to be committed: modified: sysfs/class_fibrechannel.go
1 parent 3d93449 commit f187d47

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sysfs/class_fibrechannel.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,10 @@ func parseFibreChannelStatistics(hostPath string) (*FibreChannelCounters, error)
153153
var counters FibreChannelCounters
154154

155155
path := filepath.Join(hostPath, "statistics")
156-
157156
if _, err := os.Stat(path); os.IsNotExist(err) {
158157
fmt.Printf("Directory %s does not exist, skipping.\n", path)
159158
return &counters, nil
160159
}
161-
162160
files, err := os.ReadDir(path)
163161
if err != nil {
164162
return nil, err

0 commit comments

Comments
 (0)