Skip to content

Commit bba0a4f

Browse files
Jeshua09090kgryte
andauthored
chore: fix JavaScript lint errors
PR-URL: #12087 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com> Closes: #11867
1 parent e007cc9 commit bba0a4f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • lib/node_modules/@stdlib/utils/constructor-name/examples

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,9 @@ var Uint32Array = require( '@stdlib/array/uint32' );
3535
var ArrayBuffer = require( '@stdlib/array/buffer' );
3636
var Buffer = require( '@stdlib/buffer/ctor' );
3737
var Symbol = require( '@stdlib/symbol/ctor' );
38+
var noop = require( '@stdlib/utils/noop' );
3839
var constructorName = require( './../lib' );
3940

40-
function noop() {
41-
// Do nothing...
42-
}
43-
4441
console.log( constructorName( 'a' ) );
4542
// => 'String'
4643

@@ -148,7 +145,7 @@ console.log( constructorName( new Float64Array() ) );
148145
console.log( constructorName( new ArrayBuffer() ) );
149146
// => 'ArrayBuffer'
150147

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

154151
console.log( constructorName( Math ) );

0 commit comments

Comments
 (0)