Skip to content

Commit d9d5b06

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

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

  • lib/node_modules/@stdlib
    • _tools/github/dispatch-workflow/lib
    • symbol/async-iterator/lib

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ 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 ) ) ? new Date( info.reset*1000 ) : new Date();
87+
reset = ( isFinite( info.reset ) ) ?
88+
new Date( info.reset*1000 ) : new Date();
8889
debug( 'Rate limit reset: %s', reset.toISOString() );
8990

9091
if ( error ) {

lib/node_modules/@stdlib/symbol/async-iterator/lib/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@
2020

2121
// MODULES //
2222

23-
2423
var hasSupport = require( '@stdlib/assert/has-async-iterator-symbol-support' );
2524
var Sym = require( '@stdlib/symbol/ctor' );
2625

2726

28-
2927
// MAIN //
3028

3129
/**

0 commit comments

Comments
 (0)