@@ -30,7 +30,7 @@ class API {
3030
3131 try {
3232 assert . equal ( response . status , 200 ) ;
33- } catch ( _err ) {
33+ } catch {
3434 throw new Error ( 'unexpected response code' , { cause : [ response . status , await response . text ( ) ] } ) ;
3535 }
3636
@@ -58,7 +58,7 @@ class API {
5858
5959 try {
6060 assert . equal ( response . status , 201 ) ;
61- } catch ( _err ) {
61+ } catch {
6262 throw new Error ( 'unexpected response code' , { cause : [ response . status , await response . text ( ) ] } ) ;
6363 }
6464
@@ -81,7 +81,7 @@ class API {
8181
8282 try {
8383 assert . equal ( response . status , 201 ) ;
84- } catch ( _err ) {
84+ } catch {
8585 throw new Error ( 'unexpected response code' , { cause : [ response . status , await response . text ( ) ] } ) ;
8686 }
8787
@@ -95,7 +95,7 @@ class API {
9595
9696 try {
9797 assert . equal ( response . status , 200 ) ;
98- } catch ( _err ) {
98+ } catch {
9999 throw new Error ( 'unexpected response code' , { cause : [ response . status , await response . text ( ) ] } ) ;
100100 }
101101
@@ -109,7 +109,7 @@ class API {
109109
110110 try {
111111 assert . equal ( response . status , 200 ) ;
112- } catch ( _err ) {
112+ } catch {
113113 throw new Error ( 'unexpected response code' , { cause : [ response . status , await response . text ( ) ] } ) ;
114114 }
115115
@@ -131,7 +131,7 @@ class API {
131131
132132 try {
133133 assert . equal ( response . status , 200 ) ;
134- } catch ( _err ) {
134+ } catch {
135135 throw new Error ( 'unexpected response code' , { cause : [ response . status , await response . text ( ) ] } ) ;
136136 }
137137
0 commit comments