Skip to content

Commit 60754e6

Browse files
committed
fix
1 parent 0a8f7ee commit 60754e6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

trace/details.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,12 @@ type Detailer interface {
1010
Details() Details
1111
}
1212

13-
var _ Detailer = (*Details)(nil)
13+
var _ Detailer = Details(0)
1414

1515
type Details uint64
1616

17-
func (d *Details) Details() Details {
18-
if d == nil {
19-
return 0
20-
}
21-
22-
return *d
17+
func (d Details) Details() Details {
18+
return d
2319
}
2420

2521
func (d Details) String() string {

0 commit comments

Comments
 (0)