Skip to content

Commit 3fee4c1

Browse files
committed
Fix null warnings
1 parent 940c554 commit 3fee4c1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dotnet/src/webdriver/Chromium/ChromiumDriver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private static ICommandExecutor GenerateDriverServiceCommandExecutor(DriverServi
168168
string fullServicePath = finder.GetDriverPath();
169169
service.DriverServicePath = Path.GetDirectoryName(fullServicePath);
170170
service.DriverServiceExecutableName = Path.GetFileName(fullServicePath);
171-
if (finder.TryGetBrowserPath(out string browserPath))
171+
if (finder.TryGetBrowserPath(out string? browserPath))
172172
{
173173
options.BinaryLocation = browserPath;
174174
options.BrowserVersion = null;

dotnet/src/webdriver/Firefox/FirefoxDriver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private static ICommandExecutor GenerateDriverServiceCommandExecutor(DriverServi
221221
string fullServicePath = finder.GetDriverPath();
222222
service.DriverServicePath = Path.GetDirectoryName(fullServicePath);
223223
service.DriverServiceExecutableName = Path.GetFileName(fullServicePath);
224-
if (finder.TryGetBrowserPath(out string browserPath))
224+
if (finder.TryGetBrowserPath(out string? browserPath))
225225
{
226226
options.BinaryLocation = browserPath;
227227
options.BrowserVersion = null;

dotnet/src/webdriver/Firefox/FirefoxProfile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public void WriteToDisk()
160160
this.ProfileDirectory = GenerateProfileDirectoryName();
161161
if (!string.IsNullOrEmpty(this.sourceProfileDir))
162162
{
163-
FileUtilities.CopyDirectory(this.sourceProfileDir, this.ProfileDirectory);
163+
FileUtilities.CopyDirectory(this.sourceProfileDir!, this.ProfileDirectory);
164164
}
165165
else
166166
{

0 commit comments

Comments
 (0)