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
1111 {
1212 private readonly IConnectionSettings _connectionSettings ;
1313
@@ -25,14 +25,13 @@ public string GetIndexForType<T>()
2525 public string GetIndexForType ( Type type )
2626 {
2727 var defaultIndices = this . _connectionSettings . DefaultIndices ;
28- var defaultIndex = this . _connectionSettings . DefaultIndex ;
2928
3029 if ( defaultIndices == null )
31- return defaultIndex ;
30+ return this . _connectionSettings . DefaultIndex ;
3231 if ( defaultIndices . ContainsKey ( type ) && ! string . IsNullOrWhiteSpace ( defaultIndices [ type ] ) )
3332 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