Skip to content

Commit a3d5dee

Browse files
committed
fixup
1 parent 3ea3d67 commit a3d5dee

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

serialization/serialization.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ type FieldString struct {
8282
}
8383

8484
func (f FieldString) String() string {
85-
return string(f.Value)
85+
return f.Value
8686
}
8787

8888
type Marshaler interface {
@@ -129,7 +129,10 @@ func Unmarshal(data []byte, v interface{}) error {
129129
// Rewind the reader and skip.
130130
m.Fields[i].ID = i
131131
m.Fields[i].Skipped = true
132-
r.Seek(-1, io.SeekCurrent)
132+
_, err := r.Seek(-1, io.SeekCurrent)
133+
if err!=nil {
134+
return err
135+
}
133136
continue
134137
}
135138
m.Fields[i].ID = int(tmpField[0] / 2)

0 commit comments

Comments
 (0)