aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/handlebars/dirFromPath.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/handlebars/dirFromPath.js')
-rw-r--r--server/sonar-web/src/main/js/helpers/handlebars/dirFromPath.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/dirFromPath.js b/server/sonar-web/src/main/js/helpers/handlebars/dirFromPath.js
index ff0205e3bab..0f9c2bc045a 100644
--- a/server/sonar-web/src/main/js/helpers/handlebars/dirFromPath.js
+++ b/server/sonar-web/src/main/js/helpers/handlebars/dirFromPath.js
@@ -21,7 +21,7 @@ import _ from 'underscore';
module.exports = function (path) {
if (typeof path === 'string') {
- var tokens = path.split('/');
+ const tokens = path.split('/');
return tokens.length > 1 ? _.initial(tokens).join('/') + '/' : '';
} else {
return null;