From 4d93159632a27b19dbeca3379b340b9dd127f367 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Mon, 25 Aug 2025 18:29:56 +0700 Subject: [PATCH] chore(lib/modules/native): remove useless `String()` call on error --- lib/modules/src/native/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/src/native/index.ts b/lib/modules/src/native/index.ts index 6867ac5..1034384 100644 --- a/lib/modules/src/native/index.ts +++ b/lib/modules/src/native/index.ts @@ -59,7 +59,7 @@ export async function callBridgeMethod( 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( 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}`) } }