File tree Expand file tree Collapse file tree 3 files changed +15
-12
lines changed
_tools/github/create-repo/lib
assert/is-method/examples
ndarray/base/shape2strides/benchmark Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,9 @@ function factory( options, clbk ) {
9595 throw new TypeError ( format ( 'invalid argument. Repository name must be a string. Value: `%s`.' , name ) ) ;
9696 }
9797 query ( name , opts , done ) ;
98- /**
98+ }
99+
100+ /**
99101 * Callback invoked after receiving an API response.
100102 *
101103 * @private
@@ -104,12 +106,11 @@ function factory( options, clbk ) {
104106 * @param {Object } info - response info
105107 * @returns {void }
106108 */
107- function done ( error , data , info ) {
108- error = error || null ;
109- data = data || null ;
110- info = info || null ;
111- clbk ( error , data , info ) ;
112- }
109+ function done ( error , data , info ) {
110+ error = error || null ;
111+ data = data || null ;
112+ info = info || null ;
113+ clbk ( error , data , info ) ;
113114 }
114115}
115116
Original file line number Diff line number Diff line change 2222
2323var isMethod = require ( './../lib' ) ;
2424
25- var bool = isMethod ( { 'a' : isMethod } , 'a' ) ;
25+ var bool = isMethod ( { 'a' : isMethod } , 'a' ) ;
2626console . log ( bool ) ;
2727// => true
2828
29- bool = isMethod ( { 'a' : 'b' } , 'a' ) ;
29+ bool = isMethod ( { 'a' : 'b' } , 'a' ) ;
3030console . log ( bool ) ;
3131// => false
3232
33- bool = isMethod ( { 'a' : 'b' } , null ) ;
33+ bool = isMethod ( { 'a' : 'b' } , null ) ;
3434console . log ( bool ) ;
3535// => false
3636
@@ -46,10 +46,10 @@ bool = isMethod( void 0, 'a' );
4646console . log ( bool ) ;
4747// => false
4848
49- bool = isMethod ( { 'null' : isMethod } , null ) ;
49+ bool = isMethod ( { 'null' : isMethod } , null ) ;
5050console . log ( bool ) ;
5151// => true
5252
53- bool = isMethod ( { '[object Object]' : isMethod } , { } ) ;
53+ bool = isMethod ( { '[object Object]' : isMethod } , { } ) ;
5454console . log ( bool ) ;
5555// => true
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ bench( pkg+':assign:order=row-major', function benchmark( b ) {
9393 shape [ 1 ] = floor ( randu ( ) * 10 ) ;
9494 shape [ 2 ] = floor ( randu ( ) * 10 ) ;
9595
96+ // eslint-disable-next-line stdlib/no-new-array
9697 out = new Array ( shape . length ) ;
9798
9899 b . tic ( ) ;
@@ -121,6 +122,7 @@ bench( pkg+':assign:order=column-major', function benchmark( b ) {
121122 shape [ 1 ] = floor ( randu ( ) * 10 ) ;
122123 shape [ 2 ] = floor ( randu ( ) * 10 ) ;
123124
125+ // eslint-disable-next-line stdlib/no-new-array
124126 out = new Array ( shape . length ) ;
125127
126128 b . tic ( ) ;
You can’t perform that action at this time.
0 commit comments