Skip to content

Commit 390089e

Browse files
authored
use let or const
1 parent 535833e commit 390089e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
<script>
1313
(function(){
14-
var callback = function(data){
15-
for(var i = 0; i < data.tree.length; i++){
16-
var tree = data.tree[i]
14+
const callback = function(data){
15+
for(let i = 0; i < data.tree.length; i++){
16+
const tree = data.tree[i]
1717
if(tree.type === "tree"){
18-
var path = tree.path
18+
const path = tree.path
1919
$("#branches").append("<li><a target='_blank' href='" + path + "'>" + path + "</a></li>")
2020
}
2121
}

0 commit comments

Comments
 (0)