Skip to content

Commit e398c1a

Browse files
committed
Merge branch '4.1.x'
Closes gh-51160
2 parents b9fb384 + aedcc51 commit e398c1a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

module/spring-boot-groovy-templates/src/test/java/org/springframework/boot/groovy/template/autoconfigure/GroovyTemplateAutoConfigurationTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ void setupContext() {
7070
@AfterEach
7171
void close() {
7272
LocaleContextHolder.resetLocaleContext();
73-
if (this.context != null) {
74-
this.context.close();
75-
}
73+
this.context.close();
7674
}
7775

7876
@Test

0 commit comments

Comments
 (0)