@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 03:37 UTC

next
yml 11 lines 423 Bytes
Raw
1 id: ts-empty-catch
2 valid:
3 - 'try { work(); } catch (error) { throw error; }'
4 - 'try { work(); } catch { return undefined; }'
5 - 'try { work(); } catch (error: unknown) { report(error); }'
6 invalid:
7 - 'try { work(); } catch {}'
8 - 'try { work(); } catch (error) {}'
9 - 'try { work(); } catch { /* ignore */ }'
10 - 'try { work(); } catch (error: unknown) {}'
11 - 'try { work(); } catch (error: any) { /* ignore */ }'