Fix unused var and pseudorandom warnings

This commit is contained in:
Bill Thornton
2025-03-27 12:15:56 -04:00
parent 9077782c17
commit ad2472e90e
19 changed files with 31 additions and 30 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ export async function serverAddress() {
let config;
try {
config = await resp.json();
} catch (err) {
} catch {
return;
}
+1
View File
@@ -9,6 +9,7 @@ function toLocaleStringSupportsOptions() {
* @returns {number} Randomly generated number.
*/
export function randomInt(min: number, max: number): number {
// eslint-disable-next-line sonarjs/pseudo-random
return Math.floor(Math.random() * (max - min + 1)) + min;
}