Skip to content

Commit 7ba2767

Browse files
konardclaude
andcommitted
Fix Codacy code style: add curly braces to if statements in ComputeCatalanWithTimeLimit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 697cfea commit 7ba2767

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

csharp/Platform.Numbers.Tests/MathTests.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,22 @@ public static class MathTests
3232
private static BigInteger? ComputeCatalanWithTimeLimit(ulong n)
3333
{
3434
var twoNFact = ComputeFactorialWithTimeLimit(2 * n);
35-
if (twoNFact is null) return null;
35+
if (twoNFact is null)
36+
{
37+
return null;
38+
}
3639

3740
var nPlusOneFact = ComputeFactorialWithTimeLimit(n + 1);
38-
if (nPlusOneFact is null) return null;
41+
if (nPlusOneFact is null)
42+
{
43+
return null;
44+
}
3945

4046
var nFact = ComputeFactorialWithTimeLimit(n);
41-
if (nFact is null) return null;
47+
if (nFact is null)
48+
{
49+
return null;
50+
}
4251

4352
return twoNFact / (nPlusOneFact * nFact);
4453
}

0 commit comments

Comments
 (0)