[gdb/tui] Simplify tui_puts_internal
authorTom de Vries <tdevries@suse.de>
Fri, 9 Jun 2023 14:44:12 +0000 (16:44 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 9 Jun 2023 14:44:12 +0000 (16:44 +0200)
commita3859ffba3a29b1409714cc2c44e4d0656de3021
treea438b63da568f431520610f4db0e6a6541e4ee4b
parent68bb2e3ee06fa4dbf39f95dc76743be5cd5254f5
[gdb/tui] Simplify tui_puts_internal

Simplify tui_puts_internal by using continue, as per this [1] coding standard
rule, making the function more readable and easier to understand.

No functional changes.

Tested on x86_64-linux.

[1] https://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code

Reviewed-By: Tom Tromey <tom@tromey.com>
gdb/tui/tui-io.c