mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 05:00:19 -05:00
Fixing compiler complaint.
This commit is contained in:
parent
750985fafe
commit
1e72072b3a
@ -6,8 +6,9 @@ public interface IEnvironmentValidator : IValidator<EnvironmentRequest>;
|
|||||||
|
|
||||||
public class EnvironmentValidator : IEnvironmentValidator
|
public class EnvironmentValidator : IEnvironmentValidator
|
||||||
{
|
{
|
||||||
public async Task<ValidationResult<EnvironmentRequest>> ValidateAsync(EnvironmentRequest value) =>
|
public Task<ValidationResult<EnvironmentRequest>> ValidateAsync(EnvironmentRequest value) =>
|
||||||
value.IsSelfHosted && value.PasswordManagerSubscriptionUpdate.SeatsRequiredToAdd > 0 ?
|
Task.FromResult<ValidationResult<EnvironmentRequest>>(
|
||||||
new Invalid<EnvironmentRequest>(new CannotAutoScaleOnSelfHostError(value)) :
|
value.IsSelfHosted && value.PasswordManagerSubscriptionUpdate.SeatsRequiredToAdd > 0 ?
|
||||||
new Valid<EnvironmentRequest>(value);
|
new Invalid<EnvironmentRequest>(new CannotAutoScaleOnSelfHostError(value)) :
|
||||||
|
new Valid<EnvironmentRequest>(value));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user