From b159b219fbd2dbbd0a60cf54e68336d8444782af Mon Sep 17 00:00:00 2001 From: James Daugherty Date: Sun, 24 Nov 2024 21:58:01 +0100 Subject: [PATCH] Feedback --- .../groovy/grails/plugin/geb/WebDriverContainerHolder.groovy | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/testFixtures/groovy/grails/plugin/geb/WebDriverContainerHolder.groovy b/src/testFixtures/groovy/grails/plugin/geb/WebDriverContainerHolder.groovy index 1c2f8af..035f155 100644 --- a/src/testFixtures/groovy/grails/plugin/geb/WebDriverContainerHolder.groovy +++ b/src/testFixtures/groovy/grails/plugin/geb/WebDriverContainerHolder.groovy @@ -52,10 +52,7 @@ class WebDriverContainerHolder { } void stop() { - if (!currentContainer) { - return - } - currentContainer.stop() + currentContainer?.stop() currentContainer = null configuration = null }