Chore: Remove unused variables

This commit is contained in:
Pieter Vander Vennet 2024-01-24 23:45:20 +01:00
parent 1a415f4815
commit e68b31e267
42 changed files with 48 additions and 106 deletions

View file

@ -23,7 +23,7 @@
function update() {
const v = currentVal.data
const l = currentLang.data
if (translations.data === "" || translations.data === undefined) {
if (<any> translations.data === "" || translations.data === undefined) {
translations.data = {}
}
if (translations.data[l] === v) {
@ -44,7 +44,7 @@
)
onDestroy(
currentVal.addCallbackAndRunD((v) => {
currentVal.addCallbackAndRunD(() => {
update()
})
)

View file

@ -71,7 +71,7 @@ export abstract class Validator {
return Translations.t.validation[this.name].description
}
public isValid(key: string, getCountry?: () => string): boolean {
public isValid(_: string): boolean {
return true
}

View file

@ -6,7 +6,7 @@ export default class TranslationValidator extends Validator {
super("translation", "Makes sure the the string is of format `Record<string, string>` ")
}
isValid(value: string, getCountry?: () => string): boolean {
isValid(value: string): boolean {
try {
JSON.parse(value)
return true