Skip to content

Commit 4542abe

Browse files
committed
Fail() - minor consistency improvements
1 parent 73cd9f8 commit 4542abe

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

CSharpFunctionalExtensions/Result/Methods/Fail.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ public static Result Fail(string error)
1313
[DebuggerStepThrough]
1414
public static Result<T> Fail<T>(string error)
1515
{
16-
return new Result<T>(true, default(T), error);
16+
return new Result<T>(true, default, error);
1717
}
1818

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

0 commit comments

Comments
 (0)