no message

This commit is contained in:
A1300399510
2025-02-20 19:19:59 +08:00
parent cc70fe2405
commit 0e1e9f79cc
425 changed files with 3823 additions and 86265 deletions

View File

@@ -1,16 +0,0 @@
import utils from "../utils.js";
const callbackify = (fn, reducer) => {
return utils.isAsyncFn(fn) ? function (...args) {
const cb = args.pop();
fn.apply(this, args).then((value) => {
try {
reducer ? cb(null, ...reducer(value)) : cb(null, value);
} catch (err) {
cb(err);
}
}, cb);
} : fn;
}
export default callbackify;