Fix the small mechanical rules. [skip build]
This commit is contained in:
@@ -139,7 +139,7 @@ export const randomStr = (len = 12): string => {
|
||||
|
||||
export const suffixRename = (name: string, validator: (newName: string) => boolean): string => {
|
||||
let suffix = 1;
|
||||
let newName = name;
|
||||
let newName;
|
||||
do {
|
||||
newName = name + suffix;
|
||||
suffix += 1;
|
||||
|
||||
Reference in New Issue
Block a user