diff options
Diffstat (limited to 'app/assets/javascripts/network/branch_graph.js')
-rw-r--r-- | app/assets/javascripts/network/branch_graph.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/assets/javascripts/network/branch_graph.js b/app/assets/javascripts/network/branch_graph.js index fcfc2570b3d..a0ba2193d90 100644 --- a/app/assets/javascripts/network/branch_graph.js +++ b/app/assets/javascripts/network/branch_graph.js @@ -1,4 +1,4 @@ -/* eslint-disable func-names, no-var, one-var, no-loop-func, consistent-return, prefer-template, prefer-arrow-callback, camelcase */ +/* eslint-disable func-names, no-var, one-var, no-loop-func, consistent-return, camelcase */ import $ from 'jquery'; import { __ } from '../locale'; @@ -223,7 +223,7 @@ export default (function() { shortrefs = commit.refs; // Truncate if longer than 15 chars if (shortrefs.length > 17) { - shortrefs = shortrefs.substr(0, 15) + '…'; + shortrefs = `${shortrefs.substr(0, 15)}…`; } text = r.text(x + 4, y, shortrefs).attr({ 'text-anchor': 'start', @@ -259,9 +259,7 @@ export default (function() { opacity: 0, cursor: 'pointer', }) - .click(function() { - return window.open(options.commit_url.replace('%s', commit.id), '_blank'); - }) + .click(() => window.open(options.commit_url.replace('%s', commit.id), '_blank')) .hover( function() { this.tooltip = r.commitTooltip(x + 5, y, commit); |