Skip to content

Commit fd2ab2f

Browse files
committed
Merge branch '1.4.x' into 1.5.x
2 parents 5693acf + 198093c commit fd2ab2f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,17 @@ public SpringLiquibase liquibase() {
116116

117117
private SpringLiquibase createSpringLiquibase() {
118118
SpringLiquibase liquibase;
119-
DataSource dataSource = getDataSource();
120-
if (dataSource == null) {
121-
dataSource = DataSourceBuilder.create().url(this.properties.getUrl())
119+
DataSource dataSourceToUse = getDataSource();
120+
if (dataSourceToUse == null) {
121+
dataSourceToUse = DataSourceBuilder.create().url(this.properties.getUrl())
122122
.username(this.properties.getUser())
123123
.password(this.properties.getPassword()).build();
124124
liquibase = new DataSourceClosingSpringLiquibase();
125125
}
126126
else {
127127
liquibase = new SpringLiquibase();
128128
}
129-
liquibase.setDataSource(dataSource);
129+
liquibase.setDataSource(dataSourceToUse);
130130
return liquibase;
131131
}
132132

0 commit comments

Comments
 (0)