aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-20 11:58:20 +0200
committerVendicated <vendicated@riseup.net>2022-10-20 11:58:20 +0200
commit36f4478a4f10cb1e8f7b33ebb5d097dd028b9399 (patch)
treeb6c9268cf4c25017e8244065e0ffd1416a809044 /scripts
parent350e7b0a6a2f19728a1839dc7db85717af3399d8 (diff)
downloadVencord-36f4478a4f10cb1e8f7b33ebb5d097dd028b9399.tar.gz
Vencord-36f4478a4f10cb1e8f7b33ebb5d097dd028b9399.tar.bz2
Vencord-36f4478a4f10cb1e8f7b33ebb5d097dd028b9399.zip
more eslint
Diffstat (limited to 'scripts')
-rw-r--r--scripts/patcher/common.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/patcher/common.js b/scripts/patcher/common.js
index f750601..7a41772 100644
--- a/scripts/patcher/common.js
+++ b/scripts/patcher/common.js
@@ -72,7 +72,7 @@ function question(question) {
}
async function getMenuItem(installations) {
- let menuItems = installations.map(info => ({
+ const menuItems = installations.map(info => ({
title: info.patched ? "[MODIFIED] " + info.location : info.location,
info,
}));
@@ -126,7 +126,7 @@ function getWindowsDirs() {
.filter(file => file.name.startsWith("app-"))
.map(file => path.join(location, file.name));
- let versions = [];
+ const versions = [];
let patched = false;
for (const fqAppDir of appDirs) {
@@ -140,7 +140,7 @@ function getWindowsDirs() {
}
versions.push({
path: appDir,
- name: /app-([0-9\.]+)/.exec(fqAppDir)[1],
+ name: /app-([0-9.]+)/.exec(fqAppDir)[1],
});
}
@@ -173,7 +173,7 @@ function getDarwinDirs() {
.filter(file => file.name.startsWith("Resources"))
.map(file => path.join(location, file.name));
- let versions = [];
+ const versions = [];
let patched = false;
for (const resourceDir of appDirs) {
@@ -248,7 +248,7 @@ function getLinuxDirs() {
.map(file => path.join(location, file.name));
}
- let versions = [];
+ const versions = [];
let patched = false;
for (const resourceDir of appDirs) {
@@ -260,7 +260,7 @@ function getLinuxDirs() {
patched = true;
}
- const version = /app-([0-9\.]+)/.exec(resourceDir);
+ const version = /app-([0-9.]+)/.exec(resourceDir);
versions.push({
path: appDir,