Use const

This commit is contained in:
Samuel Elliott 2018-08-23 04:02:01 +01:00
parent c885e4ceda
commit 46dae11085
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 3 additions and 3 deletions

View File

@ -368,7 +368,7 @@ export default class PluginApi {
if (index) Notifications.dismiss(index);
}
dismissAllNotifications() {
for (let index in this.notificationStack) {
for (const index in this.notificationStack) {
this.dismissNotification(index);
}
}
@ -401,7 +401,7 @@ export default class PluginApi {
this.autocompleteSets.delete(prefix);
}
removeAllAutocompleteControllers() {
for (let [prefix] of this.autocompleteSets) {
for (const [prefix] of this.autocompleteSets) {
this.removeAutocompleteController(prefix);
}
}
@ -669,7 +669,7 @@ export default class PluginApi {
Utils.removeFromArray(this.discordContextMenus, menu);
}
removeAllDiscordContextMenus() {
for (let menu of this.discordContextMenus) {
for (const menu of this.discordContextMenus) {
this.removeDiscordContextMenu(menu);
}
}