Polish
This commit changes invocations to immediately return the expression instead of assigning it to a temporary variable. The method name should be sufficient for callers to know exactly what will be returned. Closes gh-12211
This commit is contained in:
committed by
Stephane Nicoll
parent
c27fa7bf91
commit
98f4692c62
@@ -57,8 +57,7 @@ public class ElasticsearchAutoConfiguration {
|
||||
factory.setClusterNodes(this.properties.getClusterNodes());
|
||||
factory.setProperties(createProperties());
|
||||
factory.afterPropertiesSet();
|
||||
TransportClient client = factory.getObject();
|
||||
return client;
|
||||
return factory.getObject();
|
||||
}
|
||||
|
||||
private Properties createProperties() {
|
||||
|
||||
@@ -64,9 +64,7 @@ public class Neo4jDataAutoConfiguration {
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public org.neo4j.ogm.config.Configuration configuration(Neo4jProperties properties) {
|
||||
org.neo4j.ogm.config.Configuration configuration = properties
|
||||
.createConfiguration();
|
||||
return configuration;
|
||||
return properties.createConfiguration();
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user