From 7634a37bb393f8ab7256748f5582e6fa2aa05285 Mon Sep 17 00:00:00 2001 From: Matt Gibbs Date: Wed, 23 Sep 2015 22:49:39 -0400 Subject: [PATCH] var => const change per review @geekjuice suggested declaring nextIndex as a const. --- src/js/shepherd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/shepherd.js b/src/js/shepherd.js index 17c52a941..dc9e81d6b 100644 --- a/src/js/shepherd.js +++ b/src/js/shepherd.js @@ -530,7 +530,7 @@ class Tour extends Evented { if (next) { if (typeof next.options.showOn !== 'undefined' && !next.options.showOn()) { const index = this.steps.indexOf(next); - var nextIndex = forward ? index + 1 : index - 1; + const nextIndex = forward ? index + 1 : index - 1; this.show(nextIndex, forward); } else { this.trigger('show', {