summaryrefslogtreecommitdiffstats
path: root/pbrd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-11-25 23:02:37 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-11-27 10:20:59 +0100
commitc48349e346571d307b48ca594f6edd096be7ccfd (patch)
tree3d465f92432dedb0f4496d4682228d36f29b2db9 /pbrd
parentbgpd: Convert vty_out to vty_json for JSON (diff)
downloadfrr-c48349e346571d307b48ca594f6edd096be7ccfd.tar.xz
frr-c48349e346571d307b48ca594f6edd096be7ccfd.zip
*: Remove redundand braces for single statement blocks
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'pbrd')
-rw-r--r--pbrd/pbr_vty.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c
index 42a35aeff..0065f3698 100644
--- a/pbrd/pbr_vty.c
+++ b/pbrd/pbr_vty.c
@@ -1037,9 +1037,8 @@ DEFPY (show_pbr_map,
vty_show_pbr_map(vty, pbrm, detail);
}
- if (j) {
+ if (j)
vty_json(vty, j);
- }
return CMD_SUCCESS;
}
@@ -1135,9 +1134,8 @@ DEFPY (show_pbr_interface,
}
}
- if (j) {
+ if (j)
vty_json(vty, j);
- }
return CMD_SUCCESS;
}