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:
Max 2020-01-15 15:43:57 +01:00 committed by GitHub
parent 2ae7de168d
commit 3635001222
1 changed files with 1 additions and 2 deletions

View File

@ -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