Skip to content

Commit

Permalink
Comment on casting partitionId
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jun 17, 2020
1 parent 2f443bc commit a0cd335
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/eventhub/event-hubs/src/eventHubConsumerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ export class EventHubConsumerClient {
validateEventPositions(options.startPosition);
}
({ targetedPartitionId, eventProcessor } = this.createEventProcessorForSinglePartition(
// cast to string as downstream code expects partitionId to be string, but JS users could have given us anything.
// we don't validate the user input and instead rely on service throwing errors if any
String(handlersOrPartitionId1),
optionsOrHandlers2,
possibleOptions3
Expand Down

0 comments on commit a0cd335

Please sign in to comment.