Skip to content

Commit

Permalink
Remove
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Jul 17, 2024
1 parent c7d15c9 commit 233f38d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions clients/bigquery/storagewrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,5 @@ func encodeStructToJSONString(value any) (string, error) {
return "", fmt.Errorf("failed to marshal value: %w", err)
}

stringValue := string(bytes)
if strings.Contains(stringValue, constants.ToastUnavailableValuePlaceholder) {
// TODO: Remove this if we don't see it in the logs.
slog.Error("encoded JSON value contains the toast unavailable value placeholder")
return fmt.Sprintf(`{"key":"%s"}`, constants.ToastUnavailableValuePlaceholder), nil
}
return stringValue, nil
return string(bytes), nil
}

0 comments on commit 233f38d

Please sign in to comment.