chore(lib/modules/native): remove useless String() call on error

This commit is contained in:
PalmDevs 2025-08-25 18:29:56 +07:00
parent 5684fa9d8b
commit 4d93159632
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -59,7 +59,7 @@ export async function callBridgeMethod<N extends MethodName>(
throw 'The module did not return a valid result. The native hook must have failed.'
} catch (error) {
throw new Error(`Call failed: ${String(error)}`)
throw new Error(`Call failed: ${error}`)
}
}
@ -84,7 +84,7 @@ export function callBridgeMethodSync<N extends MethodName>(
throw 'The module did not return a valid result. The native hook must have failed.'
} catch (error) {
throw new Error(`Call failed: ${String(error)}`)
throw new Error(`Call failed: ${error}`)
}
}