Skip to content

Commit 6d64cd2

Browse files
committed
Use linq to probe file existance
1 parent 40cf289 commit 6d64cd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/SeleniumManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static class SeleniumManager
142142

143143
probingPaths = [.. probingPaths.Distinct()];
144144

145-
binaryFullPath = probingPaths.Find(path => File.Exists(path));
145+
binaryFullPath = probingPaths.FirstOrDefault(File.Exists);
146146

147147
if (binaryFullPath is null)
148148
{

0 commit comments

Comments
 (0)