Skip to content

Commit 88aa061

Browse files
fix: guard against invalid Date in dispatch-workflow query
1 parent d9d5b06 commit 88aa061

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
@@ -84,7 +84,7 @@ function query( slug, id, options, clbk ) {
8484
info = ratelimit( response.headers );
8585
debug( 'Rate limit: %d', info.limit );
8686
debug( 'Rate limit remaining: %d', info.remaining );
87-
reset = ( isFinite( info.reset ) ) ?
87+
reset = ( isFinite( info.reset ) ) ?
8888
new Date( info.reset*1000 ) : new Date();
8989
debug( 'Rate limit reset: %s', reset.toISOString() );
9090

0 commit comments

Comments
 (0)