Skip to content

Commit

Permalink
Fixing Compiler Warnings #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinselohrkater committed Jul 24, 2017
1 parent 2e9046b commit 4711327
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eurofurence.App.Common/Results/Result.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public class Result<T> : Result, IResult<T>
public T Value { get; set; }
public static explicit operator T(Result<T> r) => r.Value;

public static Result<T> Ok(T value) => new Result<T> {IsSuccessful = true, Value = value};
public static Result<T> Error(string errorCode, string errorMessage = "")
public new static Result<T> Ok(T value) => new Result<T> {IsSuccessful = true, Value = value};
public new static Result<T> Error(string errorCode, string errorMessage = "")
=> new Result<T> { IsSuccessful = false, ErrorCode = errorCode, ErrorMessage = errorMessage };
}
}

0 comments on commit 4711327

Please sign in to comment.