@@ -148,7 +148,7 @@ export function fetchCourseBestPracticesQuery({
148148 dispatch ( fetchStatusBarChecklistSuccess ( getCourseBestPracticesChecklist ( data ) ) ) ;
149149
150150 return true ;
151- } catch ( error ) {
151+ } catch {
152152 return false ;
153153 }
154154 } ;
@@ -165,7 +165,7 @@ export function enableCourseHighlightsEmailsQuery(courseId: string) {
165165
166166 dispatch ( updateSavingStatus ( { status : RequestStatus . SUCCESSFUL } ) ) ;
167167 dispatch ( hideProcessingNotification ( ) ) ;
168- } catch ( error ) {
168+ } catch {
169169 dispatch ( updateSavingStatus ( { status : RequestStatus . FAILED } ) ) ;
170170 }
171171 } ;
@@ -182,7 +182,7 @@ export function setVideoSharingOptionQuery(courseId: string, option: string) {
182182
183183 dispatch ( updateSavingStatus ( { status : RequestStatus . SUCCESSFUL } ) ) ;
184184 dispatch ( hideProcessingNotification ( ) ) ;
185- } catch ( error ) {
185+ } catch {
186186 dispatch ( updateSavingStatus ( { status : RequestStatus . FAILED } ) ) ;
187187 dispatch ( hideProcessingNotification ( ) ) ;
188188 }
@@ -260,7 +260,7 @@ export function updateCourseSectionHighlightsQuery(sectionId: string, highlights
260260 dispatch ( hideProcessingNotification ( ) ) ;
261261 }
262262 } ) ;
263- } catch ( error ) {
263+ } catch {
264264 dispatch ( hideProcessingNotification ( ) ) ;
265265 dispatch ( updateSavingStatus ( { status : RequestStatus . FAILED } ) ) ;
266266 }
@@ -280,7 +280,7 @@ export function publishCourseItemQuery(itemId: string, sectionId: string) {
280280 dispatch ( updateSavingStatus ( { status : RequestStatus . SUCCESSFUL } ) ) ;
281281 }
282282 } ) ;
283- } catch ( error ) {
283+ } catch {
284284 dispatch ( hideProcessingNotification ( ) ) ;
285285 dispatch ( updateSavingStatus ( { status : RequestStatus . FAILED } ) ) ;
286286 }
@@ -300,7 +300,7 @@ export function configureCourseItemQuery(sectionId: string, configureFn: () => P
300300 dispatch ( updateSavingStatus ( { status : RequestStatus . SUCCESSFUL } ) ) ;
301301 }
302302 } ) ;
303- } catch ( error ) {
303+ } catch {
304304 dispatch ( hideProcessingNotification ( ) ) ;
305305 dispatch ( updateSavingStatus ( { status : RequestStatus . FAILED } ) ) ;
306306 }
@@ -390,7 +390,7 @@ export function editCourseItemQuery(itemId: string, sectionId: string, displayNa
390390 dispatch ( updateSavingStatus ( { status : RequestStatus . SUCCESSFUL } ) ) ;
391391 }
392392 } ) ;
393- } catch ( error ) {
393+ } catch {
394394 dispatch ( hideProcessingNotification ( ) ) ;
395395 dispatch ( updateSavingStatus ( { status : RequestStatus . FAILED } ) ) ;
396396 }
@@ -412,7 +412,7 @@ function deleteCourseItemQuery(itemId: string, deleteItemFn: () => {}) {
412412 dispatch ( deleteItemFn ( ) ) ;
413413 dispatch ( hideProcessingNotification ( ) ) ;
414414 dispatch ( updateSavingStatus ( { status : RequestStatus . SUCCESSFUL } ) ) ;
415- } catch ( error ) {
415+ } catch {
416416 dispatch ( hideProcessingNotification ( ) ) ;
417417 dispatch ( updateSavingStatus ( { status : RequestStatus . FAILED } ) ) ;
418418 }
@@ -469,7 +469,7 @@ function duplicateCourseItemQuery(
469469 dispatch ( updateSavingStatus ( { status : RequestStatus . SUCCESSFUL } ) ) ;
470470 }
471471 } ) ;
472- } catch ( error ) {
472+ } catch {
473473 dispatch ( hideProcessingNotification ( ) ) ;
474474 dispatch ( updateSavingStatus ( { status : RequestStatus . FAILED } ) ) ;
475475 }
@@ -541,7 +541,7 @@ function addNewCourseItemQuery(
541541 dispatch ( hideProcessingNotification ( ) ) ;
542542 }
543543 } ) ;
544- } catch ( error ) {
544+ } catch {
545545 dispatch ( hideProcessingNotification ( ) ) ;
546546 dispatch ( updateSavingStatus ( { status : RequestStatus . FAILED } ) ) ;
547547 }
@@ -612,7 +612,7 @@ export function addUnitFromLibrary(body: {
612612 callback ( result . locator ) ;
613613 }
614614 } ) ;
615- } catch ( error ) /* istanbul ignore next */ {
615+ } catch /* istanbul ignore next */ {
616616 dispatch ( hideProcessingNotification ( ) ) ;
617617 dispatch ( updateSavingStatus ( { status : RequestStatus . FAILED } ) ) ;
618618 }
@@ -643,7 +643,7 @@ function setBlockOrderListQuery(
643643 dispatch ( hideProcessingNotification ( ) ) ;
644644 }
645645 } ) ;
646- } catch ( error ) {
646+ } catch {
647647 restoreCallback ( ) ;
648648 dispatch ( hideProcessingNotification ( ) ) ;
649649 dispatch ( updateSavingStatus ( { status : RequestStatus . FAILED } ) ) ;
@@ -728,7 +728,7 @@ export function pasteClipboardContent(parentLocator: string, sectionId: string)
728728 dispatch ( setPasteFileNotices ( result ?. staticFileNotices ) ) ;
729729 }
730730 } ) ;
731- } catch ( error ) {
731+ } catch {
732732 dispatch ( hideProcessingNotification ( ) ) ;
733733 dispatch ( updateSavingStatus ( { status : RequestStatus . FAILED } ) ) ;
734734 }
@@ -743,7 +743,7 @@ export function dismissNotificationQuery(url: string) {
743743 await dismissNotification ( url ) . then ( async ( ) => {
744744 dispatch ( updateSavingStatus ( { status : RequestStatus . SUCCESSFUL } ) ) ;
745745 } ) ;
746- } catch ( error ) {
746+ } catch {
747747 dispatch ( updateSavingStatus ( { status : RequestStatus . FAILED } ) ) ;
748748 }
749749 } ;
0 commit comments