refactor: Simplify Statement
This commit is contained in:
parent
0e52763bed
commit
3dadbdb854
1 changed files with 1 additions and 3 deletions
|
|
@ -742,9 +742,7 @@ export class RoleService implements OnApplicationShutdown, OnModuleInit {
|
|||
const suffix = ' (cloned)';
|
||||
let newName = role.name;
|
||||
|
||||
if (newName.length > 256 - suffix.length) {
|
||||
newName = newName.slice(0, 256 - suffix.length);
|
||||
}
|
||||
newName = newName.slice(0, 256 - suffix.length);
|
||||
|
||||
newName += suffix;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue