We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f16685 commit cdf87b6Copy full SHA for cdf87b6
CSharpFunctionalExtensions/Result/Methods/Ok.cs
@@ -7,19 +7,19 @@ public partial struct Result
7
[DebuggerStepThrough]
8
public static Result Ok()
9
{
10
- return new Result(false, null);
+ return new Result(false, default);
11
}
12
13
14
public static Result<T> Ok<T>(T value)
15
16
- return new Result<T>(false, value, null);
+ return new Result<T>(false, value, default);
17
18
19
20
public static Result<T, E> Ok<T, E>(T value)
21
22
- return new Result<T, E>(false, value, default(E));
+ return new Result<T, E>(false, value, default);
23
24
25
0 commit comments