fix: no onFail function

This commit is contained in:
Alexis Tyler
2020-12-01 09:05:27 +10:30
parent 9ec225f872
commit f9405db095

View File

@@ -1,4 +1,4 @@
const tryRequire = (name, onFail) => {
const tryRequire = (name, onFail = () => {}) => {
try {
return require(name);
} catch {