Skip to content

Commit

Permalink
Refactor peeking.js
Browse files Browse the repository at this point in the history
The variable has not been reassigned a value, so it's better to use "const" instead of "let", to prevent any unexpected behavior that may occur due to unintended assignment.
  • Loading branch information
ahmed0saber committed Jul 15, 2023
1 parent 157fd2c commit b830347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mutator/transformers/peeking.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function (Glide, Components) {
*/
modify (translate) {
if (Glide.settings.focusAt >= 0) {
let peek = Components.Peek.value
const peek = Components.Peek.value

if (isObject(peek)) {
return translate - peek.before
Expand Down

0 comments on commit b830347

Please sign in to comment.