diff options
Diffstat (limited to 'src/utils/boolean.ts')
-rw-r--r-- | src/utils/boolean.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/boolean.ts b/src/utils/boolean.ts index cf10b37..8dca5e9 100644 --- a/src/utils/boolean.ts +++ b/src/utils/boolean.ts @@ -4,7 +4,8 @@ function isNotThrowing(cb: () => unknown): boolean { try { cb(); return true; - } catch (_) { + } + catch (_) { return false; } } |