File tree Expand file tree Collapse file tree 2 files changed +27
-9
lines changed Expand file tree Collapse file tree 2 files changed +27
-9
lines changed Original file line number Diff line number Diff line change 90
90
user_email : ' noreply@stdlib.io'
91
91
commit_message : ' Auto-generated commit'
92
92
enable_jekyll : true
93
+ - name : Send status to Slack channel in case of failure
94
+ uses : act10ns/slack@v1
95
+ with :
96
+ status : ${{ job.status }}
97
+ steps : ${{ toJson(steps) }}
98
+ channel : ' #npm-ci'
99
+ if : failure()
93
100
umd :
94
101
runs-on : ubuntu-latest
95
102
steps :
@@ -152,6 +159,13 @@ jobs:
152
159
user_email : ' noreply@stdlib.io'
153
160
commit_message : ' Auto-generated commit'
154
161
enable_jekyll : true
162
+ - name : Send status to Slack channel in case of failure
163
+ uses : act10ns/slack@v1
164
+ with :
165
+ status : ${{ job.status }}
166
+ steps : ${{ toJson(steps) }}
167
+ channel : ' #npm-ci'
168
+ if : failure()
155
169
esm :
156
170
runs-on : ubuntu-latest
157
171
steps :
@@ -220,3 +234,10 @@ jobs:
220
234
user_email : ' noreply@stdlib.io'
221
235
commit_message : ' Auto-generated commit'
222
236
enable_jekyll : true
237
+ - name : Send status to Slack channel in case of failure
238
+ uses : act10ns/slack@v1
239
+ with :
240
+ status : ${{ job.status }}
241
+ steps : ${{ toJson(steps) }}
242
+ channel : ' #npm-ci'
243
+ if : failure()
Original file line number Diff line number Diff line change @@ -39,24 +39,21 @@ var pow = require( '@stdlib/math-base-special-pow' );
39
39
*/
40
40
function logspace ( a , b , len ) {
41
41
var arr ;
42
- var end ;
43
- var tmp ;
42
+ var N ;
44
43
var d ;
45
44
var i ;
46
45
47
46
if ( len === 0 ) {
48
47
return [ ] ;
49
48
}
50
49
// Calculate the increment:
51
- end = len - 1 ;
52
- d = ( b - a ) / end ;
50
+ N = len - 1 ;
51
+ d = ( b - a ) / N ;
53
52
54
53
// Build the output array...
55
- tmp = a ;
56
- arr = [ pow ( 10 , tmp ) ] ;
57
- for ( i = 1 ; i < end ; i ++ ) {
58
- tmp += d ;
59
- arr . push ( pow ( 10 , tmp ) ) ;
54
+ arr = [ pow ( 10 , a ) ] ;
55
+ for ( i = 1 ; i < N ; i ++ ) {
56
+ arr . push ( pow ( 10 , a + ( d * i ) ) ) ;
60
57
}
61
58
arr . push ( pow ( 10 , b ) ) ;
62
59
return arr ;
You can’t perform that action at this time.
0 commit comments