chore: don't name unused errors in catch expressions (#2591)
This commit is contained in:
@@ -58,7 +58,7 @@ export function fetchCourseSectionVerticalData(courseId, sequenceId) {
|
||||
localStorage.removeItem('staticFileNotices');
|
||||
dispatch(fetchSequenceSuccess({ sequenceId }));
|
||||
return true;
|
||||
} catch (error) {
|
||||
} catch {
|
||||
dispatch(updateLoadingCourseSectionVerticalDataStatus({ status: RequestStatus.FAILED }));
|
||||
dispatch(fetchSequenceFailure({ sequenceId }));
|
||||
return false;
|
||||
@@ -204,7 +204,7 @@ export function fetchCourseVerticalChildrenData(itemId, isSplitTestType, skipPag
|
||||
}
|
||||
dispatch(updateCourseVerticalChildren(courseVerticalChildrenData));
|
||||
dispatch(updateCourseVerticalChildrenLoadingStatus({ status: RequestStatus.SUCCESSFUL }));
|
||||
} catch (error) {
|
||||
} catch {
|
||||
dispatch(updateCourseVerticalChildrenLoadingStatus({ status: RequestStatus.FAILED }));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -177,7 +177,7 @@ export const PreviewLibraryXBlockChanges = ({
|
||||
overrideCustomizations,
|
||||
});
|
||||
postChange(accept);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
showToast(intl.formatMessage(failureMsg));
|
||||
} finally {
|
||||
closeModal();
|
||||
|
||||
Reference in New Issue
Block a user