Skip to content

Commit 26b6b20

Browse files
Code cleanup
1 parent 3ae04d8 commit 26b6b20

File tree

74 files changed

+508
-508
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+508
-508
lines changed

CSharpInteractive.HostApi/BuildMessage.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,27 @@ namespace HostApi;
2929
public record BuildMessage(
3030
Output Output,
3131
BuildMessageState State,
32-
IServiceMessage? ServiceMessage = default,
32+
IServiceMessage? ServiceMessage = null,
3333
string Text = "",
3434
string ErrorDetails = "",
3535
string Code = "",
3636
string File = "",
3737
string Subcategory = "",
3838
string ProjectFile = "",
3939
string SenderName = "",
40-
int? ColumnNumber = default,
41-
int? EndColumnNumber = default,
42-
int? LineNumber = default,
43-
int? EndLineNumber = default,
44-
DotNetMessageImportance? Importance = default)
40+
int? ColumnNumber = null,
41+
int? EndColumnNumber = null,
42+
int? LineNumber = null,
43+
int? EndLineNumber = null,
44+
DotNetMessageImportance? Importance = null)
4545
{
4646
/// <summary>
4747
/// Contains the result of test execution when <see cref="State"/> is set to <see cref="BuildMessageState.TestResult"/>.
4848
/// </summary>
4949
public TestResult? TestResult =>
5050
ServiceMessage != null && TryGetTestState(ServiceMessage.Name, out var testState)
5151
? CreateResult(CreateKey(ServiceMessage), ServiceMessage, testState)
52-
: default(TestResult?);
52+
: null;
5353

5454
/// <inheritdoc />
5555
public override string ToString() => Text;

CSharpInteractive.HostApi/BuildStatistics.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ namespace HostApi;
1414
[ExcludeFromCodeCoverage]
1515
[Target]
1616
public record BuildStatistics(
17-
int Errors = default,
18-
int Warnings = default,
19-
int Tests = default,
20-
int FailedTests = default,
21-
int IgnoredTests = default,
22-
int PassedTests = default)
17+
int Errors = 0,
18+
int Warnings = 0,
19+
int Tests = 0,
20+
int FailedTests = 0,
21+
int IgnoredTests = 0,
22+
int PassedTests = 0)
2323
{
2424
/// <summary>
2525
/// <c>True></c> if the statistic is empty, <c>False</c> if it contains any information.

CSharpInteractive.HostApi/DockerRun.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ public partial record DockerRun(
7171
IEnumerable<(string host, string ip)> Hosts,
7272
string ExecutablePath = "",
7373
string WorkingDirectory = "",
74-
int? CPUs = default,
74+
int? CPUs = null,
7575
string EntryPoint = "",
7676
string HostName = "",
77-
int? KernelMemory = default,
78-
int? Memory = default,
79-
string? Name = default,
77+
int? KernelMemory = null,
78+
int? Memory = null,
79+
string? Name = null,
8080
string Network = "",
8181
string Platform = "",
82-
bool? Privileged = default,
83-
DockerPullType? Pull = default,
82+
bool? Privileged = null,
83+
DockerPullType? Pull = null,
8484
bool Quiet = false,
85-
bool? ReadOnly = default,
86-
bool? AutoRemove = default,
85+
bool? ReadOnly = null,
86+
bool? AutoRemove = null,
8787
string User = "",
8888
string ContainerWorkingDirectory = "",
8989
string EnvFile = "",

0 commit comments

Comments
 (0)