Port 7.7 - WIP

This commit is contained in:
Stephan
2017-09-14 11:41:46 +02:00
parent 37171d96bc
commit 4634eb28e7
45 changed files with 312 additions and 359 deletions

View File

@@ -83,10 +83,10 @@ namespace Umbraco.Web.HealthCheck
private HealthCheck GetCheckById(Guid id)
{
var check = _checks
.FirstOrDefault(x => x.Id == action.HealthCheckId)
.Where(x => _disabledCheckIds.Contains(x.Id) == false);
.Where(x => _disabledCheckIds.Contains(x.Id) == false)
.FirstOrDefault(x => x.Id == id);
if (check == null) throw new InvalidOperationException(string.Format("No health check found with id {0}", id));
if (check == null) throw new InvalidOperationException($"No health check found with id {id}");
return check;
}