Skip to content

Commit 68ebd5f

Browse files
diemolnvborisenko
andauthored
Renaming variable and converting it to nullable bool? (#16138)
* Renaming variable and converting it to nullable bool? * Update dotnet/src/webdriver/Firefox/FirefoxDriverService.cs Co-authored-by: Nikolay Borisenko <[email protected]> --------- Co-authored-by: Nikolay Borisenko <[email protected]>
1 parent a6b06fb commit 68ebd5f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dotnet/src/webdriver/Firefox/FirefoxDriverService.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,13 @@ protected override DriverOptions GetDefaultDriverOptions()
104104
public string? LogPath { get; set; }
105105

106106
/// <summary>
107-
/// Disable truncation of long log lines in GeckoDriver.
107+
/// Gets or sets a value indicating whether to disable truncation of long log lines in GeckoDriver.
108108
/// </summary>
109-
public bool LogNoTruncate { get; set; }
109+
/// <remarks>
110+
/// A <see langword="null"/> value indicates no log truncation setting to specify.
111+
/// Set to <see langword="true"/> to disable truncation, or <see langword="false"/> to enable truncation.
112+
/// </remarks>
113+
public bool? LogTruncate { get; set; }
110114

111115
/// <summary>
112116
/// Directory in which GeckoDriver creates profiles.
@@ -199,7 +203,7 @@ protected override string CommandLineArguments
199203
argsBuilder.Append(" --jsdebugger");
200204
}
201205

202-
if (this.LogNoTruncate)
206+
if (this.LogTruncate is true)
203207
{
204208
argsBuilder.Append(" --log-no-truncate");
205209
}

0 commit comments

Comments
 (0)