mirror of
https://github.com/Warky-Devs/artemis-kit.git
synced 2025-05-19 11:47:29 +00:00
Remove console logs on tryToBaseN,tryFromBaseN
This commit is contained in:
parent
d727828cdd
commit
57129e46d5
@ -96,8 +96,9 @@ export function toBaseN(num: number | bigint, base: number = 36): string {
|
|||||||
export function tryFromBaseN(str: string, base: number = 36, fallback: bigint | number = 0): bigint| number {
|
export function tryFromBaseN(str: string, base: number = 36, fallback: bigint | number = 0): bigint| number {
|
||||||
try {
|
try {
|
||||||
return fromBaseN(str, base)
|
return fromBaseN(str, base)
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
} catch(_e) {
|
} catch(_e) {
|
||||||
console.warn("tryFromBaseN",str,base,_e)
|
|
||||||
return fallback
|
return fallback
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,8 +115,9 @@ export function tryFromBaseN(str: string, base: number = 36, fallback: bigint |
|
|||||||
export function tryToBaseN(num: number | bigint, base: number = 36, fallback: string = ""): string {
|
export function tryToBaseN(num: number | bigint, base: number = 36, fallback: string = ""): string {
|
||||||
try {
|
try {
|
||||||
return toBaseN(num, base)
|
return toBaseN(num, base)
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
} catch(_e) {
|
} catch(_e) {
|
||||||
console.warn("tryToBaseN",num,base,_e)
|
|
||||||
return fallback
|
return fallback
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user