Fix formatting of nlink on other platforms (#1295)
This commit is contained in:
1 parent
2ab4b14e88
commit
e885abe1a3
1 file changed
+1
-2
@@ -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 ""
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user