summaryrefslogtreecommitdiffstats
path: root/public/js/draw.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2019-07-16 03:51:46 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-07-16 09:51:46 +0800
commitf34726a4b9d76c9a49ce2d28ddde48af5d4745c4 (patch)
tree6c584c7c93e66a201779191b732c38f2e16792c7 /public/js/draw.js
parentd2958d9f4633ddbde2202952d665b3d562eb0415 (diff)
downloadgitea-f34726a4b9d76c9a49ce2d28ddde48af5d4745c4.tar.gz
gitea-f34726a4b9d76c9a49ce2d28ddde48af5d4745c4.zip
convert all js var to let/const (#7464)
Most of the work was done by `eslint --fix`, I fixed around 10 cases where it could not auto-convert.
Diffstat (limited to 'public/js/draw.js')
-rw-r--r--public/js/draw.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/draw.js b/public/js/draw.js
index 518d1ec545..643ff233c0 100644
--- a/public/js/draw.js
+++ b/public/js/draw.js
@@ -1,7 +1,7 @@
/* globals gitGraph */
$(document).ready(function () {
- var graphList = [];
+ const graphList = [];
if (!document.getElementById('graph-canvas')) {
return;