Skip to content

Commit

Permalink
fix: cleanup vars
Browse files Browse the repository at this point in the history
Co-Authored-By: Shane <jonas.shane@gmail.com>
  • Loading branch information
BelfordZ and shanejonas committed Jul 25, 2019
1 parent 2042f72 commit 72debcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RequestManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class RequestManager {

results.forEach((response) => {
const id = typeof response.id === "string" ? response.id : response.id.toString();
const promiseForResult = this.requests[response.id];
const promiseForResult = this.requests[id];
if (promiseForResult === undefined) {
throw new Error(
`Received an unrecognized response id: ${response.id}. Valid ids are: ${Object.keys(this.requests)}`,
Expand Down

0 comments on commit 72debcf

Please sign in to comment.