Skip to content

Commit 1e4ff43

Browse files
Use length and count instead of Any()
1 parent ad1d42b commit 1e4ff43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private void AccessLinkDragDrop(string containerName, DragEventArgs e)
4848
{
4949
var files = (string[])e.Data.GetData(DataFormats.FileDrop);
5050

51-
if (files == null || !files.Any())
51+
if (files == null || files.Length == 0)
5252
{
5353
return;
5454
}
@@ -101,7 +101,7 @@ private void Expander_Expanded(object sender, RoutedEventArgs e)
101101
if (sender is Expander expandedExpander)
102102
{
103103
// Ensure _expanders is not null and contains items
104-
if (_expanders == null || !_expanders.Any()) return;
104+
if (_expanders == null || _expanders.Count == 0) return;
105105

106106
foreach (var expander in _expanders)
107107
{

0 commit comments

Comments
 (0)