Skip to content

Commit 5a76469

Browse files
committed
simplify code
1 parent 97d82c5 commit 5a76469

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spx-gui/src/components/editor/code-editor/spx-code-editor/ui/input-helper/SpxPropertyNameInput.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@ watchEffect(async (onCleanup) => {
6565
const signal = getCleanupSignal(onCleanup)
6666
try {
6767
const result = await getProperties(textDocument, signal)
68-
if (signal.aborted) return
68+
signal.throwIfAborted()
6969
properties.value = result
7070
} catch (e) {
71-
if (signal.aborted) return
7271
properties.value = []
7372
capture(e, 'Failed to get properties in SpxPropertyNameInput')
7473
}

0 commit comments

Comments
 (0)