Skip to content

Commit 7acb708

Browse files
authored
style: fix spacing and line breaks
PR-URL: #2296 Reviewed-by: Athan Reines <[email protected]>
1 parent 65619f9 commit 7acb708

File tree

1 file changed

+3
-6
lines changed
  • lib/node_modules/@stdlib/math/base/special/lcm/src

1 file changed

+3
-6
lines changed

lib/node_modules/@stdlib/math/base/special/lcm/src/main.c

+3-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
/**
2424
* Computes the least common multiple (lcm).
2525
*
26-
* @private
2726
* @param a integer
2827
* @param b integer
2928
* @return least common multiple
@@ -37,19 +36,17 @@ double stdlib_base_lcm( const double a, const double b ) {
3736
double bn;
3837
double d;
3938

40-
if( a == 0.0 || b == 0.0 ) {
39+
if ( a == 0.0 || b == 0.0 ) {
4140
return 0.0;
4241
}
4342
if ( a < 0.0 ) {
4443
an = -a;
45-
}
46-
else {
44+
} else {
4745
an = a;
4846
}
4947
if ( b < 0.0 ) {
5048
bn = -b;
51-
}
52-
else {
49+
} else {
5350
bn = b;
5451
}
5552
// Note: we rely on `gcd` to perform further argument validation...

0 commit comments

Comments
 (0)