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 ) {
95
95
throw new TypeError ( format ( 'invalid argument. Repository name must be a string. Value: `%s`.' , name ) ) ;
96
96
}
97
97
query ( name , opts , done ) ;
98
- /**
98
+ }
99
+
100
+ /**
99
101
* Callback invoked after receiving an API response.
100
102
*
101
103
* @private
@@ -104,12 +106,11 @@ function factory( options, clbk ) {
104
106
* @param {Object } info - response info
105
107
* @returns {void }
106
108
*/
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 ) ;
113
114
}
114
115
}
115
116
Original file line number Diff line number Diff line change 22
22
23
23
var isMethod = require ( './../lib' ) ;
24
24
25
- var bool = isMethod ( { 'a' : isMethod } , 'a' ) ;
25
+ var bool = isMethod ( { 'a' : isMethod } , 'a' ) ;
26
26
console . log ( bool ) ;
27
27
// => true
28
28
29
- bool = isMethod ( { 'a' : 'b' } , 'a' ) ;
29
+ bool = isMethod ( { 'a' : 'b' } , 'a' ) ;
30
30
console . log ( bool ) ;
31
31
// => false
32
32
33
- bool = isMethod ( { 'a' : 'b' } , null ) ;
33
+ bool = isMethod ( { 'a' : 'b' } , null ) ;
34
34
console . log ( bool ) ;
35
35
// => false
36
36
@@ -46,10 +46,10 @@ bool = isMethod( void 0, 'a' );
46
46
console . log ( bool ) ;
47
47
// => false
48
48
49
- bool = isMethod ( { 'null' : isMethod } , null ) ;
49
+ bool = isMethod ( { 'null' : isMethod } , null ) ;
50
50
console . log ( bool ) ;
51
51
// => true
52
52
53
- bool = isMethod ( { '[object Object]' : isMethod } , { } ) ;
53
+ bool = isMethod ( { '[object Object]' : isMethod } , { } ) ;
54
54
console . log ( bool ) ;
55
55
// => true
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ bench( pkg+':assign:order=row-major', function benchmark( b ) {
93
93
shape [ 1 ] = floor ( randu ( ) * 10 ) ;
94
94
shape [ 2 ] = floor ( randu ( ) * 10 ) ;
95
95
96
+ // eslint-disable-next-line stdlib/no-new-array
96
97
out = new Array ( shape . length ) ;
97
98
98
99
b . tic ( ) ;
@@ -121,6 +122,7 @@ bench( pkg+':assign:order=column-major', function benchmark( b ) {
121
122
shape [ 1 ] = floor ( randu ( ) * 10 ) ;
122
123
shape [ 2 ] = floor ( randu ( ) * 10 ) ;
123
124
125
+ // eslint-disable-next-line stdlib/no-new-array
124
126
out = new Array ( shape . length ) ;
125
127
126
128
b . tic ( ) ;
You can’t perform that action at this time.
0 commit comments