remove void

This commit is contained in:
Cory LaViska
2022-07-21 10:01:30 -04:00
parent 7a77be017e
commit 1c36a7bcd4

View File

@@ -198,7 +198,7 @@ export default class SlTooltip extends LitElement {
if (this.hasTrigger('hover')) {
const delay = parseDuration(getComputedStyle(this).getPropertyValue('--show-delay'));
clearTimeout(this.hoverTimeout);
this.hoverTimeout = window.setTimeout(() => void this.show(), delay);
this.hoverTimeout = window.setTimeout(() => this.show(), delay);
}
}
@@ -206,7 +206,7 @@ export default class SlTooltip extends LitElement {
if (this.hasTrigger('hover')) {
const delay = parseDuration(getComputedStyle(this).getPropertyValue('--hide-delay'));
clearTimeout(this.hoverTimeout);
this.hoverTimeout = window.setTimeout(() => void this.hide(), delay);
this.hoverTimeout = window.setTimeout(() => this.hide(), delay);
}
}