Add StartOS 0.4.0 packaging
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
export const ignoreENOENT = async (p) => p.catch(er => {
|
||||
if (er.code !== 'ENOENT') {
|
||||
throw er;
|
||||
}
|
||||
});
|
||||
export const ignoreENOENTSync = (fn) => {
|
||||
try {
|
||||
return fn();
|
||||
}
|
||||
catch (er) {
|
||||
if (er?.code !== 'ENOENT') {
|
||||
throw er;
|
||||
}
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=ignore-enoent.js.map
|
||||
Reference in New Issue
Block a user