1
0
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:
jrmccannon 2025-03-28 10:00:02 -05:00
parent 750985fafe
commit 1e72072b3a
No known key found for this signature in database
GPG Key ID: CF03F3DB01CE96A6

View File

@ -6,8 +6,9 @@ public interface IEnvironmentValidator : IValidator<EnvironmentRequest>;
public class EnvironmentValidator : IEnvironmentValidator
{
public async Task<ValidationResult<EnvironmentRequest>> ValidateAsync(EnvironmentRequest value) =>
public Task<ValidationResult<EnvironmentRequest>> ValidateAsync(EnvironmentRequest value) =>
Task.FromResult<ValidationResult<EnvironmentRequest>>(
value.IsSelfHosted && value.PasswordManagerSubscriptionUpdate.SeatsRequiredToAdd > 0 ?
new Invalid<EnvironmentRequest>(new CannotAutoScaleOnSelfHostError(value)) :
new Valid<EnvironmentRequest>(value);
new Valid<EnvironmentRequest>(value));
}