style(web): keep the v8 ignore reasons inline per the invariant rule

This commit is contained in:
creatixchu
2026-07-28 18:04:50 +08:00
parent 99643e59a1
commit 5f3c53d835

View File

@@ -195,17 +195,13 @@ export function DirectoryBrowser({ open, listDirectory, createDirectory, onOpen,
const seq = ++requestSeq.current const seq = ++requestSeq.current
setLoading(true) setLoading(true)
listDirectory(targetPath).then((level) => { listDirectory(targetPath).then((level) => {
// Same seq fence as navigate/select; the nested dialog blocks /* v8 ignore next -- same fence as navigate/select; the modal blocks superseding input */
// superseding input during this relist.
/* v8 ignore next */
if (seq !== requestSeq.current) return if (seq !== requestSeq.current) return
setParent(level) setParent(level)
setLoading(false) setLoading(false)
select({ name, path: createdPath, hidden: false }) select({ name, path: createdPath, hidden: false })
}, (reason: unknown) => { }, (reason: unknown) => {
// Same seq fence as navigate/select; the nested dialog blocks /* v8 ignore next -- same fence as navigate/select; the modal blocks superseding input */
// superseding input during this relist.
/* v8 ignore next */
if (seq !== requestSeq.current) return if (seq !== requestSeq.current) return
setLoading(false) setLoading(false)
setError(failureText(reason)) setError(failureText(reason))