lint
This commit is contained in:
parent
40d2f3a820
commit
99ed31be38
1 changed files with 1 additions and 1 deletions
|
|
@ -283,7 +283,7 @@ module.exports = {
|
|||
|
||||
if (data.backup) {
|
||||
var newpath, i = 0
|
||||
while (true) {
|
||||
for (;;) {
|
||||
newpath = data.path.replace(/\.json$/, '-backup' + String(i).padStart(3, 0) + '.json')
|
||||
if (fs.existsSync(newpath)) i++
|
||||
else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue