Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typo in MiddlewareStack #1104

Merged
merged 1 commit into from
Apr 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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