electron-main: Use const instead of let for the index variable.
This commit is contained in:
@@ -394,7 +394,7 @@ ipcMain.on('seshat', async function(ev, payload) {
|
|||||||
|
|
||||||
case 'closeEventIndex':
|
case 'closeEventIndex':
|
||||||
if (eventIndex !== null) {
|
if (eventIndex !== null) {
|
||||||
let index = eventIndex;
|
const index = eventIndex;
|
||||||
eventIndex = null;
|
eventIndex = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user