Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,6 @@ func (b *Builder[T]) Execute(ctx context.Context) (*PostgrestResponse[T], error)
var zeroT T
if _, ok := any(zeroT).(string); ok {
response.Data = any(strData).(T)
} else {
// If T is not string, for plan text we can't unmarshal as JSON
// Just leave Data as zero value - this is expected behavior for non-string types
// The response body is available as plain text but can't be unmarshaled into non-string T
}
} else if len(bodyBytes) > 0 {
acceptHeader := b.headers.Get("Accept")
Expand Down