Skip to content

Commit

Permalink
style: fix spacing and line breaks
Browse files Browse the repository at this point in the history
PR-URL: #2296
Reviewed-by: Athan Reines <kgryte@gmail.com>
  • Loading branch information
gunjjoshi authored Jun 2, 2024
1 parent 65619f9 commit 7acb708
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/node_modules/@stdlib/math/base/special/lcm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
/**
* Computes the least common multiple (lcm).
*
* @private
* @param a integer
* @param b integer
* @return least common multiple
Expand All @@ -37,19 +36,17 @@ double stdlib_base_lcm( const double a, const double b ) {
double bn;
double d;

if( a == 0.0 || b == 0.0 ) {
if ( a == 0.0 || b == 0.0 ) {
return 0.0;
}
if ( a < 0.0 ) {
an = -a;
}
else {
} else {
an = a;
}
if ( b < 0.0 ) {
bn = -b;
}
else {
} else {
bn = b;
}
// Note: we rely on `gcd` to perform further argument validation...
Expand Down

1 comment on commit 7acb708

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
math/base/special/lcm $\color{green}165/165$
$\color{green}+100.00\%$
$\color{green}14/14$
$\color{green}+100.00\%$
$\color{green}2/2$
$\color{green}+100.00\%$
$\color{green}165/165$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.