Skip to content

Commit 02fbe34

Browse files
committed
Code format
1 parent 3af894a commit 02fbe34

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/NHibernate/Cfg/XmlHbmBinding/PropertiesBinder.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -401,16 +401,14 @@ private void BindCollectionProperty(ICollectionPropertiesMapping collectionMappi
401401
private Property CreateProperty(IEntityPropertyMapping propertyMapping, System.Type propertyOwnerType, SimpleValue value, IDictionary<string, MetaAttribute> inheritedMetas)
402402
{
403403
if (string.IsNullOrEmpty(propertyMapping.Name))
404-
{
405404
throw new MappingException("A property mapping must define the name attribute [" + propertyOwnerType + "]");
406-
}
407405

408406
var propertyAccessorName = GetPropertyAccessorName(propertyMapping.Access);
409407

410408
if (propertyOwnerType != null && value.IsSimpleValue)
411409
value.SetTypeUsingReflection(propertyOwnerType, propertyMapping.Name, propertyAccessorName);
412410

413-
var property = new Property
411+
return new Property
414412
{
415413
Name = propertyMapping.Name,
416414
PropertyAccessorName = propertyAccessorName,
@@ -420,16 +418,12 @@ private Property CreateProperty(IEntityPropertyMapping propertyMapping, System.T
420418
IsOptimisticLocked = propertyMapping.OptimisticLock,
421419
MetaAttributes = GetMetas(propertyMapping, inheritedMetas)
422420
};
423-
424-
return property;
425421
}
426422

427423
private Property CreateProperty(IEntityPropertyMapping propertyMapping, System.Type propertyOwnerType, Mapping.Collection value, IDictionary<string, MetaAttribute> inheritedMetas)
428424
{
429425
if (string.IsNullOrEmpty(propertyMapping.Name))
430-
{
431426
throw new MappingException("A property mapping must define the name attribute [" + propertyOwnerType + "]");
432-
}
433427

434428
var propertyAccessorName = GetPropertyAccessorName(propertyMapping.Access);
435429

0 commit comments

Comments
 (0)