Fix ternary in activate call

Part of #1134
This commit is contained in:
Daniel Imms
2022-08-30 07:51:32 -07:00
parent 99c47eb3c3
commit 284d9f9893
+1 -1
View File
@@ -70,7 +70,7 @@ export class OscLinkProvider implements ILinkProvider {
result.push({
text,
range,
activate: (e, text) => (linkHandler?.activate(e, text, range) || defaultActivate(e, text)),
activate: (e, text) => (linkHandler ? linkHandler.activate(e, text, range) : defaultActivate(e, text)),
hover: (e, text) => linkHandler?.hover?.(e, text, range),
leave: (e, text) => linkHandler?.leave?.(e, text, range)
});