From 504b9fca44b0b23ae5256482cefaea476d3ea290 Mon Sep 17 00:00:00 2001 From: Maria Lisina Date: Sun, 15 Feb 2026 13:14:03 +0300 Subject: */*: Remove extra exit code Signed-off-by: Maria Lisina --- operators/command_export.zsh | 2 +- operators/command_original.zsh | 2 +- operators/command_ping.zsh | 6 +++--- operators/command_source.zsh | 2 +- operators/url_parser.zsh | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'operators') diff --git a/operators/command_export.zsh b/operators/command_export.zsh index fe68802..370aea0 100644 --- a/operators/command_export.zsh +++ b/operators/command_export.zsh @@ -25,5 +25,5 @@ done if [[ -z "${output_text}" ]] then - exit 0 + exit fi diff --git a/operators/command_original.zsh b/operators/command_original.zsh index adeebdf..19fdc44 100644 --- a/operators/command_original.zsh +++ b/operators/command_original.zsh @@ -151,4 +151,4 @@ then fi rmdir "${cache}/${ib_hash}.lock" -exit 0 +exit diff --git a/operators/command_ping.zsh b/operators/command_ping.zsh index dfb6016..bd45bab 100644 --- a/operators/command_ping.zsh +++ b/operators/command_ping.zsh @@ -83,7 +83,7 @@ then log_text="editMessageText (${update_id}): Failed to access Telegram Bot API" source "${units}/log.zsh" - exit 0 + exit fi if ! jq -e '.' <<< "${output_data}" > /dev/null @@ -91,7 +91,7 @@ then log_text="editMessageText (${update_id}): An unknown error occurred" source "${units}/log.zsh" - exit 0 + exit fi if [[ "$(jq -r '.ok' <<< "${output_data}")" != "true" ]] @@ -108,4 +108,4 @@ then source "${units}/log.zsh" fi -exit 0 +exit diff --git a/operators/command_source.zsh b/operators/command_source.zsh index 9553bc6..8a3f9f8 100644 --- a/operators/command_source.zsh +++ b/operators/command_source.zsh @@ -4,7 +4,7 @@ if [[ -n "${nocommand_source}" ]] then - exit 0 + exit fi until mkdir "${user_config}_source.lock" diff --git a/operators/url_parser.zsh b/operators/url_parser.zsh index b24c1bf..cfe874c 100644 --- a/operators/url_parser.zsh +++ b/operators/url_parser.zsh @@ -44,7 +44,7 @@ done if [[ -z "${ib_post_id}" ]] then - exit 0 + exit fi source "${units}/ib_config.zsh" @@ -52,7 +52,7 @@ source "${units}/ib_authconfig.zsh" if [[ ${#ib_post_id} -gt 32 ]] then - exit 0 + exit elif [[ ${#ib_post_id} -eq 32 ]] then ib_query="md5:${ib_post_id}" -- cgit v1.2.3