Redundant Variable 'config'
Instead of initializing a local variable first and then return it, you could directly return a new Builder instance. -> return new Builder().uri(URL).build();
This commit is contained in:
parent
2ae7de168d
commit
3635001222
|
@ -16,8 +16,7 @@ public class MovieDatabaseNeo4jConfiguration {
|
|||
|
||||
@Bean
|
||||
public org.neo4j.ogm.config.Configuration getConfiguration() {
|
||||
org.neo4j.ogm.config.Configuration config = new Builder().uri(URL).build();
|
||||
return config;
|
||||
return new Builder().uri(URL).build();
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
|
Loading…
Reference in New Issue