diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-12-30 14:01:06 +0300 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-12-30 14:01:06 +0300 |
| commit | 420216f69204a6720816ef03cfc73c1fce5a8cf9 (patch) | |
| tree | 03f52dadcd55ece920104f87fcad7d09c4066454 /auth | |
| parent | 7f5c0175e973f2f2795239382446197ebf026515 (diff) | |
*/*: Remove unused return code
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
Diffstat (limited to 'auth')
| -rw-r--r-- | auth/donmai.zsh | 8 | ||||
| -rw-r--r-- | auth/moebooru.zsh | 2 | ||||
| -rw-r--r-- | auth/sankakucomplex.zsh | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/auth/donmai.zsh b/auth/donmai.zsh index d7e3eab..ae18fb7 100644 --- a/auth/donmai.zsh +++ b/auth/donmai.zsh @@ -21,7 +21,7 @@ then log_text="ib_auth (${update_id}): ${output_text}" source "${units}/log.zsh" - return 0 + return fi if ! jq -e '.' <<< "${ib_auth_data}" > /dev/null @@ -31,19 +31,19 @@ then log_text="ib_auth (${update_id}): ${output_text}" source "${units}/log.zsh" - return 0 + return fi if [[ "$(jq -r '.success' <<< "${ib_auth_data}")" == "false" ]] then output_text="Error: <code>$(jq -r '.message' <<< "${ib_auth_data}" | htmlescape)</code>" - return 0 + return fi if [[ "$(jq -r '.name' <<< "${ib_auth_data}")" != "${ib_login}" ]] then output_text="Failed to verify user authorization" - return 0 + return fi printf "%s" "${ib_login}:${ib_key}" | base64 > "${token_file}" diff --git a/auth/moebooru.zsh b/auth/moebooru.zsh index 747250d..459cdc9 100644 --- a/auth/moebooru.zsh +++ b/auth/moebooru.zsh @@ -22,7 +22,7 @@ then log_text="ib_auth (${update_id}): ${output_text}" source "${units}/log.zsh" - return 0 + return fi if ! jq -e '.' <<< "${ib_auth_data}" > /dev/null diff --git a/auth/sankakucomplex.zsh b/auth/sankakucomplex.zsh index ebd71f0..d7f1791 100644 --- a/auth/sankakucomplex.zsh +++ b/auth/sankakucomplex.zsh @@ -29,7 +29,7 @@ then log_text="ib_auth (${update_id}): ${output_text}" source "${units}/log.zsh" - return 0 + return fi if ! jq -e '.' <<< "${ib_auth_data}" > /dev/null @@ -39,13 +39,13 @@ then log_text="ib_auth (${update_id}): ${output_text}" source "${units}/log.zsh" - return 0 + return fi if [[ "$(jq -r '.success' <<< "${ib_auth_data}")" != "true" ]] then output_text="Error: <code>$(jq -r '.error' <<< "${ib_auth_data}" | htmlescape)</code>" - return 0 + return fi jq -r '.access_token' <<< "${ib_auth_data}" > "${token_file}" |
