Files
chat-proxy/frontend/node_modules/bail/index.js
T
Samuele E. Locatelli 1d4b5aba63 Init repo con git
2025-08-21 08:59:27 +00:00

13 lines
207 B
JavaScript

/**
* Throw a given error.
*
* @param {Error|null|undefined} [error]
* Maybe error.
* @returns {asserts error is null|undefined}
*/
export function bail(error) {
if (error) {
throw error
}
}