@@ -206,8 +206,8 @@ describe("client", () => {
206206 ) ;
207207 assert . equal ( mocks . core . setOutput . getCall ( 5 ) . firstArg , "time" ) ;
208208 assert . equal ( mocks . core . setOutput . getCalls ( ) . length , 6 ) ;
209- } catch ( error ) {
210- console . error ( error ) ;
209+ } catch ( err ) {
210+ console . error ( err ) ;
211211 assert . fail ( "Unexpected error when calling the method" ) ;
212212 }
213213 } ) ;
@@ -244,8 +244,8 @@ describe("client", () => {
244244 assert . equal ( mocks . core . setOutput . getCall ( 2 ) . lastArg , "C0101010101" ) ;
245245 assert . equal ( mocks . core . setOutput . getCall ( 3 ) . firstArg , "time" ) ;
246246 assert . equal ( mocks . core . setOutput . getCalls ( ) . length , 4 ) ;
247- } catch ( error ) {
248- console . error ( error ) ;
247+ } catch ( err ) {
248+ console . error ( err ) ;
249249 assert . fail ( "Unexpected error when calling the method" ) ;
250250 }
251251 } ) ;
@@ -277,8 +277,8 @@ describe("client", () => {
277277 ) ;
278278 assert . equal ( mocks . core . setOutput . getCall ( 2 ) . firstArg , "time" ) ;
279279 assert . equal ( mocks . core . setOutput . getCalls ( ) . length , 3 ) ;
280- } catch ( error ) {
281- console . error ( error ) ;
280+ } catch ( err ) {
281+ console . error ( err ) ;
282282 assert . fail ( "Unexpected error when calling the method" ) ;
283283 }
284284 } ) ;
@@ -305,7 +305,7 @@ describe("client", () => {
305305 mocks . calls . rejects ( errors . requestErrorWithOriginal ( response , true ) ) ;
306306 await send ( mocks . core ) ;
307307 assert . fail ( "Expected an error but none was found" ) ;
308- } catch ( error ) {
308+ } catch ( _err ) {
309309 assert . isTrue ( mocks . core . setFailed . called ) ;
310310 assert . equal ( mocks . core . setOutput . getCall ( 0 ) . firstArg , "ok" ) ;
311311 assert . equal ( mocks . core . setOutput . getCall ( 0 ) . lastArg , false ) ;
@@ -340,7 +340,7 @@ describe("client", () => {
340340 mocks . calls . rejects ( errors . httpErrorFromResponse ( response ) ) ;
341341 await send ( mocks . core ) ;
342342 assert . fail ( "Expected an error but none was found" ) ;
343- } catch ( error ) {
343+ } catch ( _err ) {
344344 assert . isFalse ( mocks . core . setFailed . called ) ;
345345 assert . equal ( mocks . core . setOutput . getCall ( 0 ) . firstArg , "ok" ) ;
346346 assert . equal ( mocks . core . setOutput . getCall ( 0 ) . lastArg , false ) ;
@@ -376,7 +376,7 @@ describe("client", () => {
376376 mocks . calls . rejects ( errors . platformErrorFromResult ( response ) ) ;
377377 await send ( mocks . core ) ;
378378 assert . fail ( "Expected an error but none was found" ) ;
379- } catch ( error ) {
379+ } catch ( _err ) {
380380 assert . isTrue ( mocks . core . setFailed . called ) ;
381381 assert . equal ( mocks . core . setOutput . getCall ( 0 ) . firstArg , "ok" ) ;
382382 assert . equal ( mocks . core . setOutput . getCall ( 0 ) . lastArg , false ) ;
@@ -405,7 +405,7 @@ describe("client", () => {
405405 mocks . calls . rejects ( errors . platformErrorFromResult ( response ) ) ;
406406 await send ( mocks . core ) ;
407407 assert . fail ( "Expected an error but none was found" ) ;
408- } catch ( error ) {
408+ } catch ( _err ) {
409409 assert . isFalse ( mocks . core . setFailed . called ) ;
410410 assert . equal ( mocks . core . setOutput . getCall ( 0 ) . firstArg , "ok" ) ;
411411 assert . equal ( mocks . core . setOutput . getCall ( 0 ) . lastArg , false ) ;
@@ -431,7 +431,7 @@ describe("client", () => {
431431 mocks . calls . rejects ( errors . rateLimitedErrorWithDelay ( 12 ) ) ;
432432 await send ( mocks . core ) ;
433433 assert . fail ( "Expected an error but none was found" ) ;
434- } catch ( error ) {
434+ } catch ( _err ) {
435435 assert . isFalse ( mocks . core . setFailed . called ) ;
436436 assert . equal ( mocks . core . setOutput . getCall ( 0 ) . firstArg , "ok" ) ;
437437 assert . equal ( mocks . core . setOutput . getCall ( 0 ) . lastArg , false ) ;
0 commit comments