From 1ce69787e0dc8093a36a4b6a447788c30a1bfc23 Mon Sep 17 00:00:00 2001 From: Bart Sokol Date: Tue, 22 May 2018 14:23:49 +0200 Subject: [PATCH] Final touches for 0.3 --- Monacs.Core/Result.Extensions.Async.cs | 4 ++-- Monacs.Core/Result.Extensions.Unit.cs | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Monacs.Core/Result.Extensions.Async.cs b/Monacs.Core/Result.Extensions.Async.cs index 5ec8562..72f3b68 100644 --- a/Monacs.Core/Result.Extensions.Async.cs +++ b/Monacs.Core/Result.Extensions.Async.cs @@ -193,8 +193,8 @@ public static async Task MatchAsync(this Task> resu /// /// Type of the encapsulated value. /// The result of which the value should be ignored. - public static async Task> IgnoreAsync(this Task> result) => - (await result).Map(_ => Monacs.Core.Unit.Unit.Default); + public static async Task> IgnoreAsync(this Task> result) => + (await result).Map(_ => Unit.Unit.Default); /* Side Effects */ diff --git a/Monacs.Core/Result.Extensions.Unit.cs b/Monacs.Core/Result.Extensions.Unit.cs index 67375db..bbf2262 100644 --- a/Monacs.Core/Result.Extensions.Unit.cs +++ b/Monacs.Core/Result.Extensions.Unit.cs @@ -8,15 +8,15 @@ public static class UnitResult /// /// Creates the Ok case instance of the . /// - public static Result Ok() => - Result.Ok(Unit.Default); + public static Result Ok() => + Result.Ok(Unit.Unit.Default); /// /// Creates the Error case instance of the type, containing error instead of value. /// /// Details of the error. - public static Result Error(ErrorDetails error) => - Result.Error(error); + public static Result Error(ErrorDetails error) => + Result.Error(error); /// /// Rejects the value of the and returns instead. @@ -24,7 +24,7 @@ public static Result Error(ErrorDetails error) => /// /// Type of the encapsulated value. /// The result of which the value should be ignored. - public static Result Ignore(this Result result) => - result.Map(_ => Unit.Default); + public static Result Ignore(this Result result) => + result.Map(_ => Unit.Unit.Default); } }