Skip to content

Commit

Permalink
Update src/utils/attendee.js
Browse files Browse the repository at this point in the history
Signed-off-by: Mason Brothers <[email protected]>
  • Loading branch information
masonbrothers authored and backportbot-nextcloud[bot] committed May 4, 2023
1 parent 6bb01a8 commit 3a059e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/attendee.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export function removeMailtoPrefix(uri) {
* @return {string} URI with a mailto prefix
*/
export function addMailtoPrefix(uri) {
if (typeof uri !== 'string') return 'mailto:'
if (typeof uri !== 'string') {
return 'mailto:'
}

if (uri.startsWith('mailto:')) {
return uri
Expand Down

0 comments on commit 3a059e4

Please sign in to comment.