Skip to content

Commit

Permalink
hmmm
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlm committed Nov 25, 2024
1 parent e83a7cb commit e8c9cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Consolonia.Core/Controls/FileSavePickerViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected override bool FilterItem(IStorageItem item)
if (item is IStorageFolder) return true;
if (item is IStorageFile file)
{
if (SelectedFileType?.Patterns == null || SelectedFileType.Patterns.Count == 0)
if (SelectedFileType == null || SelectedFileType.Patterns == null || SelectedFileType.Patterns.Count == 0)

Check warning on line 27 in src/Consolonia.Core/Controls/FileSavePickerViewModel.cs

View workflow job for this annotation

GitHub Actions / build

"[ConditionIsAlwaysTrueOrFalse] Expression is always false" on /home/runner/work/Consolonia/Consolonia/src/Consolonia.Core/Controls/FileSavePickerViewModel.cs(27,21)
return true;

foreach (string pattern in SelectedFileType.Patterns)
Expand Down

0 comments on commit e8c9cd6

Please sign in to comment.