diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-10-05 16:14:33 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-10-05 16:14:33 +0300 |
commit | eda9e6b65baece281f45255e25a263e895d36db5 (patch) | |
tree | 8b6bc074a26289392d2e6bec5a3345a2306e1646 /app/assets/javascripts/line_highlighter.js | |
parent | 8262cb2f4e9f366e99592859d6348f48da4a4d39 (diff) |
Fixed Linting Error + Error with Line Highlighter found in Test
Diffstat (limited to 'app/assets/javascripts/line_highlighter.js')
-rw-r--r-- | app/assets/javascripts/line_highlighter.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/line_highlighter.js b/app/assets/javascripts/line_highlighter.js index ef91d471639..a75d1a4b8d0 100644 --- a/app/assets/javascripts/line_highlighter.js +++ b/app/assets/javascripts/line_highlighter.js @@ -56,7 +56,7 @@ LineHighlighter.prototype.bindEvents = function() { LineHighlighter.prototype.highlightHash = function(newHash) { let range; - if (newHash) this._hash = newHash; + if (newHash && typeof newHash === 'string') this._hash = newHash; this.clearHighlight(); |