We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce227ee commit dc2aee8Copy full SHA for dc2aee8
1 file changed
SharpRepository.Repository/RepositoryFactory.cs
@@ -78,10 +78,7 @@ private static SharpRepositorySection GetConfiguration(string sectionName)
78
private static string GetAttributeRepositoryName(Type entityType)
79
{
80
var attribute = entityType.GetOneAttribute<SharpRepositoryConfigurationAttribute>();
81
- if (attribute == null)
82
- return null;
83
-
84
- return attribute.RepositoryName;
+ return attribute == null ? null : attribute.RepositoryName;
85
}
86
87
0 commit comments