1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Tools: Apply rule github/array-foreach

This commit is contained in:
Laurent Cozic
2023-06-30 09:39:21 +01:00
parent c6a15b3186
commit 0c4ba592f6
32 changed files with 473 additions and 4 deletions

View File

@ -262,6 +262,7 @@ export default class KeymapService extends BaseService {
public getCustomKeymapItems() {
const customkeymapItems: KeymapItem[] = [];
// eslint-disable-next-line github/array-foreach -- Old code before rule was applied
this.defaultKeymapItems.forEach(({ command, accelerator }) => {
const currentAccelerator = this.getAccelerator(command);