Skip to content

Commit c4ae21e

Browse files
committed
code_style: async method names
Signed-off-by: leo <[email protected]>
1 parent 1522da8 commit c4ae21e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/ViewModels/Repository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ public bool IsLFSEnabled()
677677
return content.Contains("git lfs pre-push");
678678
}
679679

680-
public async Task InstallLFS()
680+
public async Task InstallLFSAsync()
681681
{
682682
var log = CreateLog("Install LFS");
683683
var succ = await new Commands.LFS(_fullpath).Use(log).InstallAsync();
@@ -1498,7 +1498,7 @@ public async Task CheckoutTagAsync(Models.Tag tag)
14981498
await _histories?.CheckoutBranchByCommitAsync(c);
14991499
}
15001500

1501-
public async Task CompareBranchWithWorktree(Models.Branch branch)
1501+
public async Task CompareBranchWithWorktreeAsync(Models.Branch branch)
15021502
{
15031503
if (_histories != null)
15041504
{

src/Views/BranchTree.axaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ private ContextMenu CreateContextMenuForLocalBranch(ViewModels.Repository repo,
741741
compareWithWorktree.Icon = App.CreateMenuIcon("Icons.Compare");
742742
compareWithWorktree.Click += async (_, e) =>
743743
{
744-
await repo.CompareBranchWithWorktree(branch);
744+
await repo.CompareBranchWithWorktreeAsync(branch);
745745
e.Handled = true;
746746
};
747747
menu.Items.Add(compareWithWorktree);
@@ -1014,7 +1014,7 @@ public ContextMenu CreateContextMenuForRemoteBranch(ViewModels.Repository repo,
10141014
compareWithWorktree.Icon = App.CreateMenuIcon("Icons.Compare");
10151015
compareWithWorktree.Click += async (_, e) =>
10161016
{
1017-
await repo.CompareBranchWithWorktree(branch);
1017+
await repo.CompareBranchWithWorktreeAsync(branch);
10181018
e.Handled = true;
10191019
};
10201020
menu.Items.Add(compareWithWorktree);

src/Views/RepositoryToolbar.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ private void OpenGitLFSMenu(object sender, RoutedEventArgs e)
378378
install.Icon = App.CreateMenuIcon("Icons.Init");
379379
install.Click += async (_, e) =>
380380
{
381-
await repo.InstallLFS();
381+
await repo.InstallLFSAsync();
382382
e.Handled = true;
383383
};
384384
menu.Items.Add(install);

0 commit comments

Comments
 (0)