Skip to content

Commit efe0cc9

Browse files
committed
Rename files and update code style
1 parent 6c06ec9 commit efe0cc9

4 files changed

Lines changed: 10 additions & 16 deletions

File tree

lib/node_modules/@stdlib/utils/curry-right/lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838

3939
// MODULES //
4040

41-
var curryRight = require( './curry_right.js' );
41+
var main = require( './main.js' );
4242

4343

4444
// EXPORTS //
4545

46-
module.exports = curryRight;
46+
module.exports = main;

lib/node_modules/@stdlib/utils/curry-right/lib/curry_right.js renamed to lib/node_modules/@stdlib/utils/curry-right/lib/main.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,15 @@ function curryRight( fcn, arity, thisArg ) {
5555
}
5656
if ( arguments.length < 2 ) {
5757
len = fcn.length;
58-
}
59-
else if ( arguments.length > 2 ) {
58+
} else if ( arguments.length > 2 ) {
6059
len = arity;
6160
context = thisArg;
6261
if ( !isPositiveInteger( len ) ) {
6362
throw new TypeError( format( 'invalid argument. Arity argument must be a positive integer. Value: `%s`.', len ) );
6463
}
65-
}
66-
else if ( isPositiveInteger( arity ) ) {
64+
} else if ( isPositiveInteger( arity ) ) {
6765
len = arity;
68-
}
69-
else {
66+
} else {
7067
len = fcn.length;
7168
context = arity;
7269
}

lib/node_modules/@stdlib/utils/curry/lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838

3939
// MODULES //
4040

41-
var curry = require( './curry.js' );
41+
var main = require( './main.js' );
4242

4343

4444
// EXPORTS //
4545

46-
module.exports = curry;
46+
module.exports = main;

lib/node_modules/@stdlib/utils/curry/lib/curry.js renamed to lib/node_modules/@stdlib/utils/curry/lib/main.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,15 @@ function curry( fcn, arity, thisArg ) {
5555
}
5656
if ( arguments.length < 2 ) {
5757
len = fcn.length;
58-
}
59-
else if ( arguments.length > 2 ) {
58+
} else if ( arguments.length > 2 ) {
6059
len = arity;
6160
context = thisArg;
6261
if ( !isPositiveInteger( len ) ) {
6362
throw new TypeError( format( 'invalid argument. Arity argument must be a positive integer. Value: `%s`.', len ) );
6463
}
65-
}
66-
else if ( isPositiveInteger( arity ) ) {
64+
} else if ( isPositiveInteger( arity ) ) {
6765
len = arity;
68-
}
69-
else {
66+
} else {
7067
len = fcn.length;
7168
context = arity;
7269
}

0 commit comments

Comments
 (0)