diff options
author | dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> | 2020-03-22 05:23:02 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-03-23 12:21:39 +0300 |
commit | 552cc355a662dc40860eae3e8f8c64c006697751 (patch) | |
tree | a8fb5a9d319a8be9cbbea7bdc22c10166ba54417 /src/service/AvatarService.js | |
parent | 07d5d32eb0d49f62b2c09b4f2a7beb38c8c591a9 (diff) |
Bump prettier from 1.19.1 to 2.0.1
Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.0.1)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src/service/AvatarService.js')
-rw-r--r-- | src/service/AvatarService.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/service/AvatarService.js b/src/service/AvatarService.js index 05e9f0910..213dcb606 100644 --- a/src/service/AvatarService.js +++ b/src/service/AvatarService.js @@ -24,7 +24,7 @@ import memoize from 'lodash/fp/memoize' import Axios from '@nextcloud/axios' import {generateUrl} from '@nextcloud/router' -export const fetchAvatarUrl = email => { +export const fetchAvatarUrl = (email) => { if (email === null) { return Promise.resolve(undefined) } @@ -34,8 +34,8 @@ export const fetchAvatarUrl = email => { }) return Axios.get(url) - .then(resp => resp.data) - .then(avatar => { + .then((resp) => resp.data) + .then((avatar) => { if (avatar.isExternal) { return generateUrl('/apps/mail/api/avatars/image/{email}', { email: email, @@ -44,7 +44,7 @@ export const fetchAvatarUrl = email => { return avatar.url } }) - .catch(err => { + .catch((err) => { if (err.response.status === 404) { return undefined } |