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:
vvzvvv
2026-07-30 08:41:53 +02:00
committed by Stéphane Nicoll
parent 37bb6ba61c
commit e02521d12b
@@ -70,9 +70,7 @@ class GroovyTemplateAutoConfigurationTests {
@AfterEach
void close() {
LocaleContextHolder.resetLocaleContext();
if (this.context != null) {
this.context.close();
}
this.context.close();
}
@Test