connection: Simplify ANSI parsing - both branches of the if will function the same way