Skip to content

Commit

Permalink
feat(Net): support from NET6 to NET8 added
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBogomips committed Feb 12, 2024
1 parent 0c94975 commit 922360d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Monads/Monads.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Sdk Name="DotNet.ReproducibleBuilds.Isolated" Version="1.1.1" />
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
<LangVersion>12.0</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AssemblyName>Bogoware.Monads</AssemblyName>
Expand Down
2 changes: 1 addition & 1 deletion src/Monads/Result/ResultCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ internal ResultCollection(IEnumerable<Result<TValue>> results)

internal Result<IEnumerable<TValue?>> ToResult()
{
if (IsFailure) return Result.Failure<IEnumerable<TValue?>>(_error);
if (IsFailure) return Result.Failure<IEnumerable<TValue?>>(_error!);
if (_results.Count == 0) return Result.Success(Enumerable.Empty<TValue?>());
var values = _results.Select(r => r.Value);
return Result.Success(values);
Expand Down

0 comments on commit 922360d

Please sign in to comment.