(cb)
| 188 | // an optimization, since the data passed back to the callback needs to be |
| 189 | // transformed anyway. |
| 190 | function makeStatsCallback(cb) { |
| 191 | validateFunction(cb, 'cb'); |
| 192 | |
| 193 | return (err, stats) => { |
| 194 | if (err) return cb(err); |
| 195 | if (stats === undefined && err === null) return cb(null, undefined); |
| 196 | cb(err, getStatsFromBinding(stats)); |
| 197 | }; |
| 198 | } |
| 199 | |
| 200 | const isFd = isInt32; |
| 201 |
no test coverage detected
searching dependent graphs…