Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
  • Loading branch information
legrego and azasypkin authored Jun 28, 2022
1 parent 33d26b6 commit 3e34e6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ describe('Session index', () => {
mockElasticsearchClient.indices.exists.mockResponse(false);

let callCount = 0;
mockElasticsearchClient.create.mockResponseImplementation((req, opts) => {
mockElasticsearchClient.create.mockResponseImplementation(() => {
callCount++;
// Fail the first create attempt because the index/alias doesn't exist
if (callCount === 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class SessionIndex {
'Attempted to create a new session, but session index or alias was missing.'
);
await this.ensureSessionIndexExists();
({ body, statusCode } = await this.writeNewSessionDocument(sessionValue, {
({ body } = await this.writeNewSessionDocument(sessionValue, {
ignore404: false,
}));
}
Expand Down

0 comments on commit 3e34e6a

Please sign in to comment.