Spaces:
Sleeping
Sleeping
Download gui/frontend/node_modules/eslint/lib/rules/utils/code-path-utils.js from BrianLov/guiBackend: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/spaces/BrianLov/guiBackend/resolve/main/gui/frontend/node_modules/eslint/lib/rules/utils/code-path-utils.js
- Command line
-
hf download hf://spaces/BrianLov/guiBackend/gui/frontend/node_modules/eslint/lib/rules/utils/code-path-utils.js
-
curl -L -o code-path-utils.js https://huggingface.co/spaces/BrianLov/guiBackend/resolve/main/gui/frontend/node_modules/eslint/lib/rules/utils/code-path-utils.js
482 Bytes
| /** | |
| * @fileoverview Code path related utilities. | |
| */ | |
| ; | |
| /** | |
| * Checks all segments in a set and returns true if any are reachable. | |
| * @param {Set<CodePathSegment>} segments The segments to check. | |
| * @returns {boolean} `true` if any segment is reachable; `false` otherwise. | |
| */ | |
| function isAnySegmentReachable(segments) { | |
| for (const segment of segments) { | |
| if (segment.reachable) { | |
| return true; | |
| } | |
| } | |
| return false; | |
| } | |
| module.exports = { isAnySegmentReachable }; | |