Skip to content

Commit

Permalink
Fix format of commands list
Browse files Browse the repository at this point in the history
  • Loading branch information
tejaskriya committed Feb 5, 2025
1 parent 66c6469 commit 252936d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,11 @@ private String constructCommandAuditMap(List<SCMCommandProto> cmds) {
auditMap.append(" , ");
}
int len = auditMap.toString().length();
auditMap.deleteCharAt(len - 1);
auditMap.deleteCharAt(len - 2);
auditMap.deleteCharAt(len - 3);
if (len > 3) {
auditMap.deleteCharAt(len - 1);
auditMap.deleteCharAt(len - 2);
auditMap.deleteCharAt(len - 3);
}
auditMap.append(']');
return auditMap.toString();
}
Expand Down

0 comments on commit 252936d

Please sign in to comment.