Skip to content

Commit

Permalink
Signed-off-by: jiajian.chi <[email protected]>
Browse files Browse the repository at this point in the history
 On branch fixFibrechannel
 Changes to be committed:
	modified:   sysfs/class_fibrechannel.go
  • Loading branch information
jiajian.chi committed Sep 12, 2024
1 parent 3d93449 commit f187d47
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sysfs/class_fibrechannel.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,10 @@ func parseFibreChannelStatistics(hostPath string) (*FibreChannelCounters, error)
var counters FibreChannelCounters

path := filepath.Join(hostPath, "statistics")

if _, err := os.Stat(path); os.IsNotExist(err) {
fmt.Printf("Directory %s does not exist, skipping.\n", path)
return &counters, nil
}

files, err := os.ReadDir(path)
if err != nil {
return nil, err
Expand Down

0 comments on commit f187d47

Please sign in to comment.