Skip to content

Commit ca47331

Browse files
committed
Align coding style
1 parent e92133c commit ca47331

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

orchagent/portsorch.cpp

+8-4
Original file line numberDiff line numberDiff line change
@@ -2379,12 +2379,14 @@ bool PortsOrch::initPort(const string &alias, const string &role, const int inde
23792379
}
23802380

23812381
/* when a port is added and priority group map counter is enabled --> we need to add pg counter for it */
2382-
if (m_isPriorityGroupMapGenerated) {
2382+
if (m_isPriorityGroupMapGenerated)
2383+
{
23832384
generatePriorityGroupMapPerPort(p);
23842385
}
23852386

23862387
/* when a port is added and queue map counter is enabled --> we need to add queue map counter for it */
2387-
if (m_isQueueMapGenerated) {
2388+
if (m_isQueueMapGenerated)
2389+
{
23882390
generateQueueMapPerPort(p);
23892391
}
23902392

@@ -2441,12 +2443,14 @@ void PortsOrch::deInitPort(string alias, sai_object_id_t port_id)
24412443
}
24422444

24432445
/* remove pg port counters */
2444-
if (m_isPriorityGroupMapGenerated) {
2446+
if (m_isPriorityGroupMapGenerated)
2447+
{
24452448
removePriorityGroupMapPerPort(p);
24462449
}
24472450

24482451
/* remove queue port counters */
2449-
if (m_isQueueMapGenerated) {
2452+
if (m_isQueueMapGenerated)
2453+
{
24502454
removeQueueMapPerPort(p);
24512455
}
24522456

0 commit comments

Comments
 (0)