mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Remove unnecessary null check in GroovyTemplateAutoConfigurationTests
The context field is final and eagerly initialized, so it can never be null at teardown time. See gh-51147 Signed-off-by: vvzvvv <tmdgusv@gmail.com>
This commit is contained in:
+1
-3
@@ -70,9 +70,7 @@ class GroovyTemplateAutoConfigurationTests {
|
||||
@AfterEach
|
||||
void close() {
|
||||
LocaleContextHolder.resetLocaleContext();
|
||||
if (this.context != null) {
|
||||
this.context.close();
|
||||
}
|
||||
this.context.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user