diff --git a/Difi.Felles.Utility/XmlValidator.cs b/Difi.Felles.Utility/XmlValidator.cs index 9fa3733..fa1735f 100755 --- a/Difi.Felles.Utility/XmlValidator.cs +++ b/Difi.Felles.Utility/XmlValidator.cs @@ -12,8 +12,7 @@ public abstract class XmlValidator public bool Validate(string document) { - var validationRunner = new ValidationRunner(_schemaSet); - return validationRunner.Validate(document); + return new ValidationRunner(_schemaSet).Validate(document); } public bool Validate(string document, out string validationMessage)