mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix: remove unreachable exit after error call in check_pg_schema.sh (#21530)
Fixes shellcheck warning reported in https://github.com/coder/coder/pull/21496#discussion_r2696470065 ## Problem The `error()` function in `lib.sh` already calls `exit 1`, so the `exit 1` on line 17 of `check_pg_schema.sh` was unreachable: ``` In ./scripts/check_pg_schema.sh line 17: exit 1 ^----^ SC2317 (info): Command appears to be unreachable. ``` ## Solution Remove the redundant `exit 1` since `error()` already handles exiting. Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
This commit is contained in:
@@ -14,7 +14,6 @@ cdroot
|
||||
|
||||
if [[ $# -lt 1 ]]; then
|
||||
error "Usage: check_pg_schema.sh <label> [files...]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
label=$1
|
||||
|
||||
Reference in New Issue
Block a user