Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return async (dispatch: Dispatch, getState: () => AppState) => {
try {
await services.applications.deletePod(appName, podName);
} catch (e) {
dispatch(commonActions.showNotification({
type: NotificationType.Error,
content: `Unable to delete pod: ${e.response && e.response.text || 'Internal error'}`,
}));
}
};
}