Skip to content

Commit b6b074a

Browse files
author
Luis Fung
committed
Code cleanup
1 parent 12aca64 commit b6b074a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schema/writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (w *writer) writeValueAs(id quad.Value, rv reflect.Value, pref string, rule
9494
return err
9595
}
9696
case saveRule:
97-
if f.Type.Kind() == reflect.Slice && f.Type != reflect.TypeOf([]byte(nil)) {
97+
if f.Type.Kind() == reflect.Slice && f.Type != byteArrayType {
9898
sl := rv.Field(i)
9999
for j := 0; j < sl.Len(); j++ {
100100
if err := w.writeOneValReflect(id, r.Pred, sl.Index(j), r.Rev); err != nil {

0 commit comments

Comments
 (0)