From 34da06e9b77b862a095fc30bdb1098c587f29676 Mon Sep 17 00:00:00 2001 From: Brian Ryner Date: Wed, 7 Dec 2022 14:31:09 +1100 Subject: [PATCH] fix --- disk/disk_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk/disk_darwin.go b/disk/disk_darwin.go index 15c0934..fea6927 100644 --- a/disk/disk_darwin.go +++ b/disk/disk_darwin.go @@ -20,7 +20,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro return ret, err } fs := make([]unix.Statfs_t, count) - count, err := unix.Getfsstat(fs, unix.MNT_WAIT) + count, err = unix.Getfsstat(fs, unix.MNT_WAIT) if err != nil { return ret, err }