Skip to content

Commit

Permalink
cast authorization variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JhontSouth committed Nov 13, 2024
1 parent 700d87b commit f3bdc4c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libraries/botbuilder/src/cloudAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,7 @@ export class CloudAdapter extends CloudAdapterBase implements BotFrameworkHttpAd
logic: (context: TurnContext) => Promise<void>,
): Promise<void> {
try {
if (typeof authorization === 'string') {
await this.processActivity(authorization, activity, logic);
} else {
await this.processActivity(authorization, activity, logic);
}
await this.processActivity(authorization as any, activity, logic);
} catch (err) {
throw new Error(`CloudAdapter.processActivityDirect(): ERROR\n ${err.stack}`);
}
Expand Down

0 comments on commit f3bdc4c

Please sign in to comment.