Skip to content

Commit

Permalink
fix: remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
BobVanB committed Jun 12, 2024
1 parent 452fb48 commit 8f1cea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/elasticsearch/nodespec/lifecycle_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8f1cea9

Please sign in to comment.