Skip to content

Commit 2e8c0cf

Browse files
committed
Auto-generated commit
1 parent 3e7ef77 commit 2e8c0cf

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

.github/workflows/bundle.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ jobs:
9090
user_email: 'noreply@stdlib.io'
9191
commit_message: 'Auto-generated commit'
9292
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()
93100
umd:
94101
runs-on: ubuntu-latest
95102
steps:
@@ -152,6 +159,13 @@ jobs:
152159
user_email: 'noreply@stdlib.io'
153160
commit_message: 'Auto-generated commit'
154161
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()
155169
esm:
156170
runs-on: ubuntu-latest
157171
steps:
@@ -220,3 +234,10 @@ jobs:
220234
user_email: 'noreply@stdlib.io'
221235
commit_message: 'Auto-generated commit'
222236
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()

lib/main.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,21 @@ var pow = require( '@stdlib/math-base-special-pow' );
3939
*/
4040
function logspace( a, b, len ) {
4141
var arr;
42-
var end;
43-
var tmp;
42+
var N;
4443
var d;
4544
var i;
4645

4746
if ( len === 0 ) {
4847
return [];
4948
}
5049
// Calculate the increment:
51-
end = len - 1;
52-
d = ( b-a ) / end;
50+
N = len - 1;
51+
d = ( b-a ) / N;
5352

5453
// 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) ) );
6057
}
6158
arr.push( pow( 10, b ) );
6259
return arr;

0 commit comments

Comments
 (0)