File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,11 @@ package content
3
3
import (
4
4
"encoding/xml"
5
5
"fmt"
6
- "github.com/valyala/bytebufferpool"
7
-
8
6
"github.com/Equationzhao/g/internal/global"
9
7
"github.com/Equationzhao/g/internal/item"
10
8
"github.com/Equationzhao/g/internal/render"
11
9
"github.com/pkg/xattr"
10
+ "github.com/valyala/bytebufferpool"
12
11
"howett.net/plist"
13
12
)
14
13
@@ -32,6 +31,10 @@ func formatBytes(bytes []byte) string {
32
31
33
32
// formatXattrValue attempts to parse the xattr value and returns a human-readable string.
34
33
func formatXattrValue (value []byte ) string {
34
+ if len (value ) == 0 {
35
+ return "<empty>"
36
+ }
37
+
35
38
// Check if the value is a binary plist
36
39
var plistData any
37
40
if _ , err := plist .Unmarshal (value , & plistData ); err == nil {
You can’t perform that action at this time.
0 commit comments