Skip to content

Commit

Permalink
chore: review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Oct 13, 2023
1 parent 1fc8f33 commit 330ef8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Ember/Client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ export class EmberClient extends EventEmitter<EmberClientEvents> {
// insert command
const commandEmberNode = insertCommand(qualifiedEmberNode, command)
// send request
return this._sendRequest<T>(commandEmberNode, hasResponse)
return this._sendRequest<T>(commandEmberNode, expectResponse)
}

private async _sendRequest<T>(node: RootElement, expectResponse: ExpectResponse): RequestPromise<T> {
Expand All @@ -450,12 +450,12 @@ export class EmberClient extends EventEmitter<EmberClientEvents> {

const message = berEncode([node], RootType.Elements)

if (hasResponse !== ExpectResponse.None) {
if (expectResponse !== ExpectResponse.None) {
const p = new Promise<T>((resolve, reject) => {
const request: Request = {
reqId,
node,
nodeResponse: hasResponse,
nodeResponse: expectResponse,
resolve,
reject,
message,
Expand Down

0 comments on commit 330ef8d

Please sign in to comment.