* Route VFS async void result to error-first callback. * @param {Promise|undefined} promise The VFS handler result * @param {Function} callback The error-first callback * @returns {boolean} true if VFS handled, false otherwise
(promise, callback)
| 218 | * @returns {boolean} true if VFS handled, false otherwise |
| 219 | */ |
| 220 | function vfsVoid(promise, callback) { |
| 221 | if (promise === undefined) return false; |
| 222 | PromisePrototypeThen(promise, () => callback(null), callback); |
| 223 | return true; |
| 224 | } |
| 225 | |
| 226 | function isFileType(stats, fileType) { |
| 227 | // Use stats array directly to avoid creating an fs.Stats instance just for |
no test coverage detected
searching dependent graphs…