Use const instead of let when possible

This commit is contained in:
miruka
2020-03-08 04:46:20 -04:00
parent ffc8a13db6
commit cdb79d11aa
23 changed files with 57 additions and 57 deletions

View File

@@ -87,7 +87,7 @@ BoxPopup {
// TODO: handle these: real user not found
const lines = []
for (let [user, error] of failedInvites) {
for (const [user, error] of failedInvites) {
const type = py.getattr(
py.getattr(error, "__class__"), "__name__",
)

View File

@@ -35,7 +35,7 @@ BoxPopup {
box.buttonCallbacks: ({
ok: button => {
let password = passwordField.text
const password = passwordField.text
okClicked = true
button.loading = true
errorMessage.text = ""