make linter happy

This commit is contained in:
Régis Hanol 2018-07-18 23:07:17 +02:00
parent af98ab9337
commit c1249d9e1d
1 changed files with 4 additions and 6 deletions

View File

@ -52,9 +52,8 @@ export default RestrictedUserRoute.extend({
user
.selectAvatar(url)
.then(() => {
bootbox.alert(
I18n.t("user.change_avatar.cache_notice"),
() => window.location.reload()
bootbox.alert(I18n.t("user.change_avatar.cache_notice"), () =>
window.location.reload()
);
})
.catch(popupAjaxError);
@ -72,9 +71,8 @@ export default RestrictedUserRoute.extend({
user
.pickAvatar(selectedUploadId, type, selectedAvatarTemplate)
.then(() => {
bootbox.alert(
I18n.t("user.change_avatar.cache_notice"),
() => window.location.reload()
bootbox.alert(I18n.t("user.change_avatar.cache_notice"), () =>
window.location.reload()
);
})
.catch(popupAjaxError);