You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Administration/Contacts/Invoke-ListContacts.ps1
+40-32Lines changed: 40 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
usingnamespaceSystem.Collections.Generic
2
2
usingnamespaceSystem.Text.RegularExpressions
3
3
4
-
FunctionInvoke-ListContacts {
4
+
functionInvoke-ListContacts {
5
5
<#
6
6
.FUNCTIONALITY
7
7
Entrypoint
@@ -18,10 +18,9 @@ Function Invoke-ListContacts {
18
18
# Early validation and exit
19
19
if (-not$TenantFilter) {
20
20
return ([HttpResponseContext]@{
21
-
StatusCode= [HttpStatusCode]::BadRequest
22
-
Body='tenantFilter is required'
23
-
})
24
-
return
21
+
StatusCode= [HttpStatusCode]::BadRequest
22
+
Body='tenantFilter is required'
23
+
})
25
24
}
26
25
27
26
# Pre-compiled regex for MailTip cleaning
@@ -52,35 +51,35 @@ Function Invoke-ListContacts {
0 commit comments