From de4365079bad2df3bdee2133576dc913ffbf1ab2 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 17 Mar 2017 09:10:48 +0100 Subject: format code using prettier (#1774) --- .../sonar-web/src/main/js/helpers/handlebars/avatarHelper.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'server/sonar-web/src/main/js/helpers/handlebars/avatarHelper.js') diff --git a/server/sonar-web/src/main/js/helpers/handlebars/avatarHelper.js b/server/sonar-web/src/main/js/helpers/handlebars/avatarHelper.js index b363867eb4b..67220a97d5a 100644 --- a/server/sonar-web/src/main/js/helpers/handlebars/avatarHelper.js +++ b/server/sonar-web/src/main/js/helpers/handlebars/avatarHelper.js @@ -20,7 +20,7 @@ import md5 from 'blueimp-md5'; import Handlebars from 'handlebars/runtime'; -function gravatarServer () { +function gravatarServer() { const getStore = require('../../app/utils/getStore').default; const { getSettingValue } = require('../../store/rootReducer'); @@ -28,13 +28,11 @@ function gravatarServer () { return (getSettingValue(store.getState(), 'sonar.lf.gravatarServerUrl') || {}).value; } -module.exports = function (email, size) { +module.exports = function(email, size) { // double the size for high pixel density screens const emailHash = md5.md5((email || '').trim()); - const url = gravatarServer() - .replace('{EMAIL_MD5}', emailHash) - .replace('{SIZE}', size * 2); + const url = gravatarServer().replace('{EMAIL_MD5}', emailHash).replace('{SIZE}', size * 2); return new Handlebars.default.SafeString( - `${email}` + `${email}` ); }; -- cgit v1.2.3