Skip to content

Commit

Permalink
refactor(linux): drop unnecessary else clause
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Dec 11, 2023
1 parent f5a63b8 commit c9acd91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/linux/diskSensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ func (d *diskSensor) Name() string {
func (d *diskSensor) ID() string {
if d.stats.Path == "/" {
return "mountpoint_root"
} else {
return "mountpoint" + strings.ReplaceAll(d.stats.Path, "/", "_")
}
return "mountpoint" + strings.ReplaceAll(d.stats.Path, "/", "_")
}

func (d *diskSensor) Attributes() any {
Expand Down

0 comments on commit c9acd91

Please sign in to comment.