Skip to content

Commit 34b3da6

Browse files
committed
Remove optional indicator from exceptions service usage
1 parent 13c072e commit 34b3da6

File tree

1 file changed

+2
-2
lines changed
  • x-pack/plugins/security_solution/server/endpoint/routes/trusted_apps

1 file changed

+2
-2
lines changed

x-pack/plugins/security_solution/server/endpoint/routes/trusted_apps/handlers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const getTrustedAppsListRouteHandler = (
2525

2626
try {
2727
// Ensure list is created if it does not exist
28-
await exceptionsListService?.createTrustedAppsList();
28+
await exceptionsListService.createTrustedAppsList();
2929
const results = await exceptionsListService.findExceptionListItem({
3030
listId: ENDPOINT_TRUSTED_APPS_LIST_ID,
3131
page,
@@ -60,7 +60,7 @@ export const getTrustedAppsCreateRouteHandler = (
6060

6161
try {
6262
// Ensure list is created if it does not exist
63-
await exceptionsListService?.createTrustedAppsList();
63+
await exceptionsListService.createTrustedAppsList();
6464

6565
const createdTrustedAppExceptionItem = await exceptionsListService.createExceptionListItem(
6666
newTrustedAppItemToExceptionItem(newTrustedApp)

0 commit comments

Comments
 (0)