From 95df3522a15631abc51a4295cae0ea401a8d4e1e Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Tue, 14 Sep 2021 19:58:52 +0200 Subject: feat: add eslint-plugin-unicorn (#1936) --- src/stores/lib/Store.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/stores/lib/Store.js') diff --git a/src/stores/lib/Store.js b/src/stores/lib/Store.js index b03a7e725..b39070ce8 100644 --- a/src/stores/lib/Store.js +++ b/src/stores/lib/Store.js @@ -28,18 +28,18 @@ export default class Store { } registerReactions(reactions) { - reactions.forEach((reaction) => this._reactions.push(new Reaction(reaction))); + for (const reaction of reactions) this._reactions.push(new Reaction(reaction)); } setup() {} initialize() { this.setup(); - this._reactions.forEach((reaction) => reaction.start()); + for (const reaction of this._reactions) reaction.start(); } teardown() { - this._reactions.forEach((reaction) => reaction.stop()); + for (const reaction of this._reactions) reaction.stop(); } resetStatus() { -- cgit v1.2.3-70-g09d2