Change in osmo-bsc[master]: bsc_vty: Coding style fix - brackets around a complex if/else

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

ipse gerrit-no-reply at lists.osmocom.org
Thu May 14 21:25:12 UTC 2020


ipse has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/18263 )


Change subject: bsc_vty: Coding style fix - brackets around a complex if/else
......................................................................

bsc_vty: Coding style fix - brackets around a complex if/else

Change-Id: I771ef866aba6af9e2a10a06e593eef78b7405377
---
M src/osmo-bsc/bsc_vty.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/63/18263/1

diff --git a/src/osmo-bsc/bsc_vty.c b/src/osmo-bsc/bsc_vty.c
index 83a7e2a..d699cf7 100644
--- a/src/osmo-bsc/bsc_vty.c
+++ b/src/osmo-bsc/bsc_vty.c
@@ -5007,9 +5007,9 @@
 		return CMD_WARNING;
 
 	if (!strcmp(argv[4], "borken")) {
-		if (lchan->fi->state == LCHAN_ST_UNUSED)
+		if (lchan->fi->state == LCHAN_ST_UNUSED) {
 			osmo_fsm_inst_state_chg(lchan->fi, LCHAN_ST_BORKEN, 0, 0);
-		else {
+		} else {
 			vty_out(vty,
 				"%% lchan is in state %s, only lchans that are in state %s may be moved to state %s manually%s",
 				osmo_fsm_state_name(lchan->fi->fsm, lchan->fi->state),

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/18263
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I771ef866aba6af9e2a10a06e593eef78b7405377
Gerrit-Change-Number: 18263
Gerrit-PatchSet: 1
Gerrit-Owner: ipse <Alexander.Chemeris at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200514/b79f3bbf/attachment.htm>


More information about the gerrit-log mailing list