Skip to content

Commit e762257

Browse files
chore: fix JavaScript lint errors (issue #11936)
1 parent c5fad82 commit e762257

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

  • lib/node_modules/@stdlib

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function query( slug, id, options, clbk ) {
7272
* @returns {void}
7373
*/
7474
function done( error, response ) {
75+
var reset;
7576
var info;
7677
if ( arguments.length === 1 ) {
7778
debug( 'No available rate limit information.' );
@@ -83,7 +84,9 @@ function query( slug, id, options, clbk ) {
8384
info = ratelimit( response.headers );
8485
debug( 'Rate limit: %d', info.limit );
8586
debug( 'Rate limit remaining: %d', info.remaining );
86-
debug( 'Rate limit reset: %s', (new Date( info.reset*1000 )).toISOString() );
87+
reset = ( isFinite( info.reset ) ) ?
88+
new Date( info.reset*1000 ) : new Date();
89+
debug( 'Rate limit reset: %s', reset.toISOString() );
8790

8891
if ( error ) {
8992
return clbk( error, info );

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
// MODULES //
2222

23-
var hasAsyncIteratorSymbolSupport = require( '@stdlib/assert/has-async-iterator-symbol-support' ); // eslint-disable-line id-length
24-
var Symbol = require( '@stdlib/symbol/ctor' );
23+
var hasSupport = require( '@stdlib/assert/has-async-iterator-symbol-support' );
24+
var Sym = require( '@stdlib/symbol/ctor' );
2525

2626

2727
// MAIN //
@@ -40,7 +40,9 @@ var Symbol = require( '@stdlib/symbol/ctor' );
4040
* console.log( 'Environment does support Symbol.asyncIterator.' );
4141
* }
4242
*/
43-
var AsyncIteratorSymbol = ( hasAsyncIteratorSymbolSupport() ) ? Symbol.asyncIterator : null; // eslint-disable-line max-len
43+
var AsyncIteratorSymbol = ( hasSupport() ) ?
44+
Object.getOwnPropertyDescriptor( Sym, 'asyncIterator' ).value :
45+
null;
4446

4547

4648
// EXPORTS //

lib/node_modules/@stdlib/utils/constructor-name/examples/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function noop() {
4242
}
4343

4444
console.log( constructorName( 'a' ) );
45-
// => 'String'
45+
// => undefined
4646

4747
console.log( constructorName( 5 ) );
4848
// => 'Number'
@@ -148,7 +148,7 @@ console.log( constructorName( new Float64Array() ) );
148148
console.log( constructorName( new ArrayBuffer() ) );
149149
// => 'ArrayBuffer'
150150

151-
console.log( constructorName( new Buffer( 'beep' ) ) ); // eslint-disable-line no-buffer-constructor
151+
console.log( constructorName( new Buffer( 'beep' ) ) );
152152
// => 'Buffer'
153153

154154
console.log( constructorName( Math ) );

0 commit comments

Comments
 (0)