From 8f1cea9dd6d697c21836bf7a6efb9f3171ad8364 Mon Sep 17 00:00:00 2001 From: dbxbbm Date: Wed, 12 Jun 2024 11:40:19 +0200 Subject: [PATCH] fix: remove comments --- pkg/controller/elasticsearch/nodespec/lifecycle_hook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/elasticsearch/nodespec/lifecycle_hook.go b/pkg/controller/elasticsearch/nodespec/lifecycle_hook.go index bfadce863b..9575a40223 100644 --- a/pkg/controller/elasticsearch/nodespec/lifecycle_hook.go +++ b/pkg/controller/elasticsearch/nodespec/lifecycle_hook.go @@ -124,11 +124,11 @@ function delayed_exit() { elapsed=$(duration "$script_start") local remaining=$((PRE_STOP_ADDITIONAL_WAIT_SECONDS - elapsed)) if (( remaining < 0 )); then - exit "${1}" # empty string is also 0 + exit "${1}" fi log "delaying termination for $remaining seconds" sleep $remaining - exit "${1:-0}" # can show a default, its the same as an empty string + exit "${1}" } function supports_node_shutdown() {