code_style: general cleanup (#1415)

* code_style:  general cleanup

* code_style: whitespace cleanup
This commit is contained in:
Nathan Baulch 2025-06-12 11:35:37 +10:00 committed by GitHub
parent 35eda489be
commit ffac71b15f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
89 changed files with 161 additions and 243 deletions

View file

@ -71,12 +71,10 @@ namespace SourceGit.ViewModels
}
else if (t is Models.Commit commit)
{
var d = commit.Decorators.Find(x =>
{
return x.Type == Models.DecoratorType.LocalBranchHead ||
x.Type == Models.DecoratorType.RemoteBranchHead ||
x.Type == Models.DecoratorType.Tag;
});
var d = commit.Decorators.Find(x => x.Type is
Models.DecoratorType.LocalBranchHead or
Models.DecoratorType.RemoteBranchHead or
Models.DecoratorType.Tag);
if (d != null)
ret.Add(d.Name);