Skip to content

Commit 856a74d

Browse files
committed
Refactor error handling in getLedgerAccountsByOperation
- Adjusted formatting of error message handling for improved readability and consistency in the `getLedgerAccountsByOperation` function within `Ledger.ts`.
1 parent 13899d2 commit 856a74d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/core/Ledger/Ledger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ export const getLedgerAccountsByOperation = async (
218218
e instanceof Error
219219
? e.message
220220
: e && typeof e === 'object' && 'message' in e
221-
? String(e.message)
222-
: '';
221+
? String(e.message)
222+
: '';
223223

224224
if (
225225
isDisconnectError(e) ||

0 commit comments

Comments
 (0)