summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/repo/components
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-10-05 15:14:33 +0200
committerTim Zallmann <tzallmann@gitlab.com>2017-10-05 15:14:33 +0200
commiteda9e6b65baece281f45255e25a263e895d36db5 (patch)
tree8b6bc074a26289392d2e6bec5a3345a2306e1646 /app/assets/javascripts/repo/components
parent8262cb2f4e9f366e99592859d6348f48da4a4d39 (diff)
downloadgitlab-ce-eda9e6b65baece281f45255e25a263e895d36db5.tar.gz
Fixed Linting Error + Error with Line Highlighter found in Test
Diffstat (limited to 'app/assets/javascripts/repo/components')
-rw-r--r--app/assets/javascripts/repo/components/repo_preview.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/repo/components/repo_preview.vue b/app/assets/javascripts/repo/components/repo_preview.vue
index 514c7d9284c..04732489c5f 100644
--- a/app/assets/javascripts/repo/components/repo_preview.vue
+++ b/app/assets/javascripts/repo/components/repo_preview.vue
@@ -28,8 +28,8 @@ export default {
this.highlightFile();
});
},
- activeLine(e) {
- this.lineHighlighter.highlightHash('#L' + Store.activeLine);
+ activeLine() {
+ this.lineHighlighter.highlightHash(`#L${Store.activeLine}`);
},
},
};