chore(sql-migrate): remove dead subcmd != "create" checks in status/list cases

Go switch cases don't fall through, so subcmd can never be "create"
when we're inside the "status" or "list" case.
This commit is contained in:
AJ ONeal 2026-04-08 15:21:04 -06:00
parent da7f45438c
commit c4964a5b65
No known key found for this signature in database

View File

@ -320,7 +320,7 @@ func main() {
os.Exit(1)
}
case "status":
if len(leafArgs) > 0 && subcmd != "create" {
if len(leafArgs) > 0 {
fmt.Fprintf(os.Stderr, "Error: unexpected args: %s\n", strings.Join(leafArgs, " "))
os.Exit(1)
}
@ -329,7 +329,7 @@ func main() {
log.Fatal(err)
}
case "list":
if len(leafArgs) > 0 && subcmd != "create" {
if len(leafArgs) > 0 {
fmt.Fprintf(os.Stderr, "Error: unexpected args: %s\n", strings.Join(leafArgs, " "))
os.Exit(1)
}