Skip to content

Commit 1899112

Browse files
committed
Fix GetMainQueryTags()
1 parent d76208c commit 1899112

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

Orm/Xtensive.Orm/Orm/Linq/TranslatorContext.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,10 @@ public ApplyParameter GetApplyParameter(CompilableProvider provider)
8989
return parameter;
9090
}
9191

92-
public IReadOnlyList<string> GetMainQueryTags()
93-
{
94-
if (Domain.TagsEnabled)
95-
return Array.Empty<string>();
96-
97-
return applyParameters.Keys.OfType<TagProvider>().Select(p => p.Tag).ToList();
98-
}
92+
public IReadOnlyList<string> GetMainQueryTags() =>
93+
Domain.TagsEnabled
94+
? applyParameters.Keys.OfType<TagProvider>().Select(p => p.Tag).ToList()
95+
: Array.Empty<string>();
9996

10097
public IDisposable DisableSessionTags()
10198
{

0 commit comments

Comments
 (0)