mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-16 23:33:38 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
19
node_modules/null-check/index.js
generated
vendored
Normal file
19
node_modules/null-check/index.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
module.exports = function (pth, cb) {
|
||||
if (String(pth).indexOf('\u0000') !== -1) {
|
||||
var err = new Error('Path must be a string without null bytes.');
|
||||
err.code = 'ENOENT';
|
||||
|
||||
if (typeof cb !== 'function') {
|
||||
throw err;
|
||||
}
|
||||
|
||||
process.nextTick(function () {
|
||||
cb(err);
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user