Skip to content

Commit c43abba

Browse files
fix: guard against invalid Date in dispatch-workflow query
1 parent 7ac99e9 commit c43abba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/node_modules/@stdlib/_tools/github/dispatch-workflow/lib

lib/node_modules/@stdlib/_tools/github/dispatch-workflow/lib/query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function query( slug, id, options, clbk ) {
8383
info = ratelimit( response.headers );
8484
debug( 'Rate limit: %d', info.limit );
8585
debug( 'Rate limit remaining: %d', info.remaining );
86-
debug( 'Rate limit reset: %s', (new Date( info.reset*1000 )).toISOString() );
86+
debug( 'Rate limit reset: %s', ( isFinite( info.reset ) ? new Date( info.reset*1000 ) : new Date() ).toISOString() );
8787

8888
if ( error ) {
8989
return clbk( error, info );

0 commit comments

Comments
 (0)