Skip to content

Commit

Permalink
[core] eslint no warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
allburov committed Nov 25, 2023
1 parent bd40978 commit 84784fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'lines-between-class-members': [
'error',
'always',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"start:debug": "nest start --debug --watch",
"start:prod": "node --unhandled-rejections=none dist/main",
"start:prod-exit": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix --max-warnings=0",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
Expand Down
2 changes: 1 addition & 1 deletion src/core/session.noweb.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class WhatsappSessionNoWebCore extends WhatsappSession {
if (!this.store) {
return proto.Message.fromObject({});
}
const msg = await this.store.loadMessage(key.remoteJid!, key.id!);
const msg = await this.store.loadMessage(key.remoteJid, key.id);
return msg?.message || undefined;
}

Expand Down

0 comments on commit 84784fa

Please sign in to comment.