Fix unused var and pseudorandom warnings
This commit is contained in:
@@ -61,7 +61,7 @@ export async function serverAddress() {
|
||||
let config;
|
||||
try {
|
||||
config = await resp.json();
|
||||
} catch (err) {
|
||||
} catch {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user