Skip to content

Commit 1edbe09

Browse files
committed
chore: apply code formatting standards
1 parent 57e889d commit 1edbe09

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

src/Commands/QueryCommitsOptimized.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,4 @@ private async Task MarkFirstMergedAsync(List<Models.Commit> commits)
190190
private bool _findFirstMerged = false;
191191
private bool _isHeadFound = false;
192192
}
193-
}
193+
}

src/Models/CommitGraph.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,10 @@ private void Add(double x, double y)
428428
/// </summary>
429429
private static bool IsLinearRepository(List<Commit> commits)
430430
{
431-
if (commits.Count == 0) return true;
432-
if (commits.Count == 1) return true;
431+
if (commits.Count == 0)
432+
return true;
433+
if (commits.Count == 1)
434+
return true;
433435

434436
System.Diagnostics.Debug.WriteLine($"IsLinearRepository: Checking {commits.Count} commits");
435437

@@ -476,7 +478,8 @@ private static async Task<CommitGraph> ParseLinearRepositoryAsync(List<Commit> c
476478
const double halfHeight = 0.5;
477479

478480
var graph = new CommitGraph();
479-
if (commits.Count == 0) return graph;
481+
if (commits.Count == 0)
482+
return graph;
480483

481484
// Create a single path for the linear history
482485
var path = new Path(0, false); // Color 0, not merged (main branch)
@@ -701,7 +704,8 @@ private static CommitGraph ParseLinearRepository(List<Commit> commits)
701704
const double halfHeight = 0.5;
702705

703706
var graph = new CommitGraph();
704-
if (commits.Count == 0) return graph;
707+
if (commits.Count == 0)
708+
return graph;
705709

706710
// Create a single path for the linear history
707711
var path = new Path(0, false); // Color 0, not merged (main branch)

src/Models/MemoryOptimizer.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,15 @@ public static IEnumerable<List<T>> ChunkData<T>(IEnumerable<T> source, int chunk
120120
/// </summary>
121121
public static void ClearPools()
122122
{
123-
while (_commitListPool.TryDequeue(out _)) { }
124-
while (_stringListPool.TryDequeue(out _)) { }
123+
while (_commitListPool.TryDequeue(out _))
124+
{ }
125+
while (_stringListPool.TryDequeue(out _))
126+
{ }
125127

126128
lock (_poolLock)
127129
{
128130
_poolSize = 0;
129131
}
130132
}
131133
}
132-
}
134+
}

src/ViewModels/GitFlowStartSupport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ public override async Task<bool> Sure()
116116
private string _version = string.Empty;
117117
private Models.Branch _selectedBaseBranch = null;
118118
}
119-
}
119+
}

src/Views/GitFlowStartSupport.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ public GitFlowStartSupport()
99
InitializeComponent();
1010
}
1111
}
12-
}
12+
}

0 commit comments

Comments
 (0)