style(web): keep the v8 ignore reasons inline per the invariant rule
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user