Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ public RelationshipTypeConstraint(OpenXmlQualifiedName attribute, string type)
else
{
var pair = current.Part.Parts
.Where(p => p.RelationshipId == attribute.Value.InnerText)
.SingleOrDefault();
.SingleOrDefault(p => p.RelationshipId == attribute.Value.InnerText);

if (pair is { })
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ private static void Get(ValidationContext context, out SemanticValidationLevel l
{
return current.Package
.GetAllParts()
.Where(p => p.Parts.Any(r => r.OpenXmlPart.PackagePart.Uri == current.Part.PackagePart.Uri))
.First();
.First(p => p.Parts.Any(r => r.OpenXmlPart.PackagePart.Uri == current.Part.PackagePart.Uri));
}
else
{
Expand Down
Loading