Enhance security and error handling in various components by refining error catch blocks to ignore specific errors, improving code clarity and consistency across the application.
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 4m10s
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 4m10s
This commit is contained in:
@@ -13,7 +13,7 @@ const getDataPath = (filename) => {
|
||||
return path.join(cwd, 'server/data', filename)
|
||||
}
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
export default defineEventHandler(async (_event) => {
|
||||
try {
|
||||
const configFile = getDataPath('config.json')
|
||||
const data = await fs.readFile(configFile, 'utf-8')
|
||||
|
||||
Reference in New Issue
Block a user