Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianenge committed Jun 7, 2016
1 parent 8d1097b commit d634f95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Difi.Felles.Utility/XmlValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d634f95

Please sign in to comment.