Skip to content

Commit

Permalink
chore: fix typo in MiddlewareStack
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Apr 20, 2020
1 parent 3dfb40f commit 8d1cf83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/middleware-stack/src/MiddlewareStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ export class MiddlewareStack<Input extends object, Output extends object> {
* 2. if `toMiddleware` doesn't exist in the specific `step`, the middleware will be appended
* to specific `step` with priority of `normal`
*/
private geMiddlewareList(): Array<MiddlewareType<Input, Output>> {
private getMiddlewareList(): Array<MiddlewareType<Input, Output>> {
let middlewareList: Array<MiddlewareType<Input, Output>> = [];
const [orphanedRelativeEntries, anchors] = this.normalizeRelativeEntries();
let entryList = [...this.absoluteEntries, ...orphanedRelativeEntries];
Expand Down Expand Up @@ -427,7 +427,7 @@ export class MiddlewareStack<Input extends object, Output extends object> {
handler: DeserializeHandler<InputType, OutputType>,
context: HandlerExecutionContext
): Handler<InputType, OutputType> {
for (const middleware of this.geMiddlewareList()) {
for (const middleware of this.getMiddlewareList()) {
handler = middleware(
handler as Handler<Input, OutputType>,
context
Expand Down

0 comments on commit 8d1cf83

Please sign in to comment.