From c48349e346571d307b48ca594f6edd096be7ccfd Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Fri, 26 Nov 2021 00:02:37 +0200 Subject: *: Remove redundand braces for single statement blocks Signed-off-by: Donatas Abraitis --- zebra/interface.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'zebra/interface.c') diff --git a/zebra/interface.c b/zebra/interface.c index a4024274cd..331034b90f 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -2348,9 +2348,8 @@ DEFPY(show_interface, show_interface_cmd, } } - if (json) { + if (json) vty_json(vty, json); - } return CMD_SUCCESS; } @@ -2392,9 +2391,8 @@ DEFPY (show_interface_vrf_all, } } - if (json) { + if (json) vty_json(vty, json); - } return CMD_SUCCESS; } @@ -2442,9 +2440,8 @@ DEFPY (show_interface_name_vrf, else if_dump_vty(vty, ifp); - if (json) { + if (json) vty_json(vty, json); - } return CMD_SUCCESS; } @@ -2504,9 +2501,8 @@ DEFPY (show_interface_name_vrf_all, else if_dump_vty(vty, ifp); - if (json) { + if (json) vty_json(vty, json); - } return CMD_SUCCESS; } -- cgit v1.2.3