Skip to content

Commit

Permalink
fix StringSchema.Validate
Browse files Browse the repository at this point in the history
  • Loading branch information
dao-jun committed Oct 21, 2023
1 parent 82dc89f commit 4f04914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulsar/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ func (ss *StringSchema) Decode(data []byte, v interface{}) error {
}

func (ss *StringSchema) Validate(message []byte) error {
return ss.Decode(message, nil)
return nil
}

func (ss *StringSchema) GetSchemaInfo() *SchemaInfo {
Expand Down

0 comments on commit 4f04914

Please sign in to comment.