Skip to content

Commit 45b7667

Browse files
committed
Apply Lint test reccomendations
1 parent 485163f commit 45b7667

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lib/components/popover.vue

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,15 @@
207207
* @param {Boolean} val
208208
*/
209209
showState(val) {
210+
const delay = this.getDelay(val);
211+
210212
clearTimeout(this._timeout);
211-
let delay = this.getDelay(val);
212213
213-
if (delay)
214+
if (delay) {
214215
this._timeout = setTimeout(() => this.togglePopover(val), delay);
215-
else
216+
} else {
216217
this.togglePopover(val);
218+
}
217219
}
218220
},
219221
@@ -309,7 +311,9 @@
309311
*/
310312
refreshPosition() {
311313
if (this._tether) {
312-
this.$nextTick(() => {this._tether.position()});
314+
this.$nextTick(() => {
315+
this._tether.position();
316+
});
313317
}
314318
},
315319
@@ -368,8 +372,8 @@
368372
* @param {Array} appliedTriggers
369373
*/
370374
updateListeners(triggers, appliedTriggers = []) {
371-
let newTriggers = [];
372-
let removeTriggers = [];
375+
const newTriggers = [];
376+
const removeTriggers = [];
373377
374378
// Look for new events not yet mapped (all of them on first load)
375379
triggers.forEach(item => {

0 commit comments

Comments
 (0)