Skip to content

Commit 0bbcc3a

Browse files
committed
Replaced null w/ undefined for omitted function params to follow ES6+ patterns ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/utils/bump]
1 parent 3d95b0b commit 0bbcc3a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

utils/bump/chatbots.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
chatbotFiles.push(...(await bump.findFileBySuffix({ suffix: `${chatbot}.user.js` })))
5454
console.log('')
5555
}
56-
fs.writeFileSync(fd, JSON.stringify(chatbotFiles, null, 2), 'utf-8')
56+
fs.writeFileSync(fd, JSON.stringify(chatbotFiles, undefined, 2), 'utf-8')
5757
bump.log.success(`\nCache file created @ ${cachePaths.chatbotPaths}`)
5858
} catch (err) { // use existing cache file
5959
chatbotFiles = JSON.parse(fs.readFileSync(cachePaths.chatbotPaths, 'utf-8'))

utils/bump/resources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
fs.constants.O_CREAT | fs.constants.O_EXCL | fs.constants.O_RDWR)
5353
bump.log.error(`Cache file missing. Generating ${cachePaths.userJSpaths}...\n`)
5454
userJSfiles = await bump.findFileBySuffix({ suffix: '.user.js' }) ; console.log('')
55-
fs.writeFileSync(fd, JSON.stringify(userJSfiles, null, 2), 'utf-8')
55+
fs.writeFileSync(fd, JSON.stringify(userJSfiles, undefined, 2), 'utf-8')
5656
bump.log.success(`\nCache file created @ ${cachePaths.userJSpaths}`)
5757
} catch (err) { // use existing cache file
5858
userJSfiles = JSON.parse(fs.readFileSync(cachePaths.userJSpaths, 'utf-8'))

0 commit comments

Comments
 (0)