Skip to content

Commit

Permalink
Fixed nullables
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiryuumaru committed Feb 15, 2024
1 parent 416c2b4 commit 1c71041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions TransactionHelpers/Result.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public virtual void ThrowIfErrorOrHasNoResult()
/// </summary>
/// <param name="value">The value to add.</param>
/// <returns>The same result instance.</returns>
public virtual Result<TValue> WithValue(TValue value)
public virtual Result<TValue> WithValue(TValue? value)
{
_value = value;
return this;
Expand Down Expand Up @@ -248,7 +248,7 @@ public new virtual Result<TValue> WithResult(params IResult?[]? results)
/// <param name="value">
/// The <typeparamref name="TValue"/> to return.
/// </param>
public static implicit operator Result<TValue>(TValue value)
public static implicit operator Result<TValue>(TValue? value)
{
return new Result<TValue>().WithValue(value);
}
Expand Down
4 changes: 2 additions & 2 deletions TransactionHelpers/version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
2.0.5
* Fixed namings
2.0.6
* Fixed nullables

0 comments on commit 1c71041

Please sign in to comment.