File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change 1
- using System ;
2
- using System . Collections . Generic ;
3
- using System . Linq ;
4
- using System . Text ;
5
- using System . Collections . Concurrent ;
6
- using System . Reflection ;
7
-
8
- namespace Nest . Resolvers
9
- {
10
- public class IndexNameResolver
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Linq ;
4
+ using System . Text ;
5
+ using System . Collections . Concurrent ;
6
+ using System . Reflection ;
7
+
8
+ namespace Nest . Resolvers
9
+ {
10
+ public class IndexNameResolver
11
11
{
12
12
private readonly IConnectionSettings _connectionSettings ;
13
13
@@ -25,14 +25,13 @@ public string GetIndexForType<T>()
25
25
public string GetIndexForType ( Type type )
26
26
{
27
27
var defaultIndices = this . _connectionSettings . DefaultIndices ;
28
- var defaultIndex = this . _connectionSettings . DefaultIndex ;
29
28
30
29
if ( defaultIndices == null )
31
- return defaultIndex ;
30
+ return this . _connectionSettings . DefaultIndex ;
32
31
if ( defaultIndices . ContainsKey ( type ) && ! string . IsNullOrWhiteSpace ( defaultIndices [ type ] ) )
33
32
return defaultIndices [ type ] ;
34
- return defaultIndex ;
35
- }
36
-
37
- }
38
- }
33
+ return this . _connectionSettings . DefaultIndex ;
34
+ }
35
+
36
+ }
37
+ }
You can’t perform that action at this time.
0 commit comments