Skip to content

Commit

Permalink
fix golint issues (zeromicro#899)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored and jeyrce committed Aug 25, 2021
1 parent 64f240c commit 3967a64
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/mapping/unmarshaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -518,14 +518,14 @@ func (u *Unmarshaler) fillSliceValue(slice reflect.Value, index int, baseKind re
target.Set(reflect.ValueOf(value))
ithVal.Set(target.Addr())
return nil
} else {
if ithVal.Kind() != reflect.TypeOf(value).Kind() {
return errTypeMismatch
}
}

ithVal.Set(reflect.ValueOf(value))
return nil
if ithVal.Kind() != reflect.TypeOf(value).Kind() {
return errTypeMismatch
}

ithVal.Set(reflect.ValueOf(value))
return nil
}
}

Expand Down

0 comments on commit 3967a64

Please sign in to comment.