Skip to content

chore: fix JavaScript lint errors (issue #6417 ) #6424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if [ -z "$1" ]; then
fi

if [ -z "$GIT_COMMIT_SEP" ]; then
GIT_COMMIT_SEP="^---^"; # Default separator
GIT_COMMIT_SEP="^---^"; # Default separator
fi

git log --name-only --no-merges --notes --pretty=format:"%H|%ad|%aN <%aE>|%B|%N|" "$1" | awk -v sep="$GIT_COMMIT_SEP" '/^$/{p=1;next} /^[0-9a-f]{40}\|/{if (p==1) print sep; p=0} {print}';
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@stdlib/math/base/napi/binary",
"@stdlib/math/base/special/abs",
"@stdlib/math/base/special/ceil",
"@stdlib/math/base/special/pow",
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/assert/is-infinite",
"@stdlib/constants/float64/max-base10-exponent",
Expand All @@ -65,6 +66,7 @@
"dependencies": [
"@stdlib/math/base/special/abs",
"@stdlib/math/base/special/ceil",
"@stdlib/math/base/special/pow",
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/assert/is-infinite",
"@stdlib/constants/float64/max-base10-exponent",
Expand All @@ -89,6 +91,7 @@
"dependencies": [
"@stdlib/math/base/special/abs",
"@stdlib/math/base/special/ceil",
"@stdlib/math/base/special/pow",
"@stdlib/math/base/assert/is-nan",
"@stdlib/math/base/assert/is-infinite",
"@stdlib/constants/float64/max-base10-exponent",
Expand Down
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/math/base/special/ceiln/src/ceiln.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "stdlib/math/base/special/ceiln.h"
#include "stdlib/math/base/special/ceil.h"
#include "stdlib/math/base/special/abs.h"
#include "stdlib/math/base/special/pow.h"
#include "stdlib/math/base/assert/is_nan.h"
#include "stdlib/math/base/assert/is_infinite.h"
#include "stdlib/constants/float64/max_base10_exponent.h"
Expand All @@ -27,7 +28,6 @@
#include "stdlib/constants/float64/max_safe_integer.h"
#include "stdlib/constants/float64/pinf.h"
#include <stdint.h>
#include <math.h>


// VARIABLES //
Expand Down Expand Up @@ -90,14 +90,14 @@ double stdlib_base_ceiln( const double x, const int32_t n ) {
}
// If we overflow, return `x`, as the number of digits to the right of the decimal is too small (i.e., `x` is too large / lacks sufficient fractional precision) for there to be any effect when rounding...
if ( n < STDLIB_CONSTANT_FLOAT64_MIN_BASE10_EXPONENT ) {
s = pow( 10.0, -( n + STDLIB_CONSTANT_FLOAT64_MAX_BASE10_EXPONENT ) ); // TODO: replace use of `pow` once have stdlib equivalent
s = stdlib_base_pow( 10.0, -( n + STDLIB_CONSTANT_FLOAT64_MAX_BASE10_EXPONENT ) );
y = ( x * HUGE_VALUE ) * s; // order of operation matters!
if ( stdlib_base_is_infinite( y ) ) {
return x;
}
return ( stdlib_base_ceil( y ) / HUGE_VALUE ) / s;
}
s = pow( 10.0, -n ); // TODO: replace use of `pow` once have stdlib equivalent
s = stdlib_base_pow( 10.0, -n );
y = x * s;
if ( stdlib_base_is_infinite( y ) ) {
return x;
Expand Down
5 changes: 2 additions & 3 deletions lib/node_modules/@stdlib/utils/async/if-then/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,9 @@ function ifthenAsync( predicate, x, y, done ) {
return done( error );
}
nargs = arguments.length;
args = new Array( nargs );
args[ 0 ] = null;
args = [ null ];
for ( i = 1; i < nargs; i++ ) {
args[ i ] = arguments[ i ];
args.push(arguments[ i ]);
}
done.apply( null, args );
}
Expand Down
Loading