1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 10:16:26 +00:00

Remove RcParser.exec

This commit is contained in:
asmsuechan
2017-08-10 11:14:42 +09:00
parent 2247c0835d
commit 473b80710d
2 changed files with 1 additions and 21 deletions

View File

@@ -10,20 +10,6 @@ function parse () {
return JSON.parse(sander.readFileSync(boostnotercPath).toString())
}
function exec (boostnotercPath) {
const config = this.parse(boostnotercPath)
if (config.execs === undefined) return
_.forEach(config.execs, (exec) => {
try {
eval(exec)
} catch (e) {
// Ignore any errors in ~/.boostnoterc
console.log(e)
}
})
}
export default {
parse,
exec
parse
}