Skip to content

Commit cdf87b6

Browse files
committed
Ok() - minor consistency improvements
1 parent 1f16685 commit cdf87b6

File tree

1 file changed

+3
-3
lines changed
  • CSharpFunctionalExtensions/Result/Methods

1 file changed

+3
-3
lines changed

CSharpFunctionalExtensions/Result/Methods/Ok.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ public partial struct Result
77
[DebuggerStepThrough]
88
public static Result Ok()
99
{
10-
return new Result(false, null);
10+
return new Result(false, default);
1111
}
1212

1313
[DebuggerStepThrough]
1414
public static Result<T> Ok<T>(T value)
1515
{
16-
return new Result<T>(false, value, null);
16+
return new Result<T>(false, value, default);
1717
}
1818

1919
[DebuggerStepThrough]
2020
public static Result<T, E> Ok<T, E>(T value)
2121
{
22-
return new Result<T, E>(false, value, default(E));
22+
return new Result<T, E>(false, value, default);
2323
}
2424
}
2525
}

0 commit comments

Comments
 (0)