Fix formatting of nlink on other platforms (#1295)

This commit is contained in:
Joe Lim authored and GitHub committed 2023-06-10 11:50:02 +03:00
1 parent 2ab4b14e88
commit e885abe1a3
1 file changed
+1 -2
+1 -2
View File
@@ -10,7 +10,6 @@ import (
"os/user"
"path/filepath"
"runtime"
"strconv"
"strings"
"syscall"
@@ -210,7 +209,7 @@ func groupName(f os.FileInfo) string {
func linkCount(f os.FileInfo) string {
if stat, ok := f.Sys().(*syscall.Stat_t); ok {
return strconv.FormatUint(stat.Nlink, 10)
return fmt.Sprint(stat.Nlink)
}
return ""
}