code_style: general cleanup

This commit is contained in:
Nathan Baulch 2025-06-13 07:14:08 +10:00
parent ae46728bbc
commit dc74ebb98a
48 changed files with 123 additions and 240 deletions

View file

@ -118,7 +118,7 @@ namespace SourceGit.ViewModels
public ContextMenu CreateChangeContextMenu()
{
if (_selectedChanges == null || _selectedChanges.Count != 1)
if (_selectedChanges is not { Count: 1 })
return null;
var change = _selectedChanges[0];