Download frontend/node_modules/bail/index.js from VinayRevanuru/Medical_Chat_App: direct link, hf CLI and curl.
- Browser
- Download file 207 Bytes
-
https://huggingface.co/VinayRevanuru/Medical_Chat_App/resolve/main/frontend/node_modules/bail/index.js
- Command line
-
hf download hf://VinayRevanuru/Medical_Chat_App/frontend/node_modules/bail/index.js
-
curl -L -o index.js https://huggingface.co/VinayRevanuru/Medical_Chat_App/resolve/main/frontend/node_modules/bail/index.js
207 Bytes
| /** | |
| * 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 | |
| } | |
| } | |