Skip to content

Commit

Permalink
bettercode: initial value is unused, since it is always overwritten
Browse files Browse the repository at this point in the history
  • Loading branch information
TemaSM committed Jan 30, 2021
1 parent ace3152 commit 4d20400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class LocalSession {
getSessionKey: (ctx) => {
if (!ctx.from) return // should never happen

let chatInstance = ctx.from.id
let chatInstance
if (ctx.chat) {
chatInstance = ctx.chat.id
} else if (ctx.updateType === 'callback_query') {
Expand Down

0 comments on commit 4d20400

Please sign in to comment.