mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Use length and count instead of Any()
This commit is contained in:
parent
ad1d42b5dd
commit
1e4ff43bfc
1 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views
|
|||
{
|
||||
var files = (string[])e.Data.GetData(DataFormats.FileDrop);
|
||||
|
||||
if (files == null || !files.Any())
|
||||
if (files == null || files.Length == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
@ -101,7 +101,7 @@ namespace Flow.Launcher.Plugin.Explorer.Views
|
|||
if (sender is Expander expandedExpander)
|
||||
{
|
||||
// Ensure _expanders is not null and contains items
|
||||
if (_expanders == null || !_expanders.Any()) return;
|
||||
if (_expanders == null || _expanders.Count == 0) return;
|
||||
|
||||
foreach (var expander in _expanders)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue