update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
32
electron/node_modules/dir-compare/build/src/FileSystem/FileCloser.js
generated
vendored
Normal file
32
electron/node_modules/dir-compare/build/src/FileSystem/FileCloser.js
generated
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.FileCloser = void 0;
|
||||
const fs_1 = __importDefault(require("fs"));
|
||||
function closeFilesSync(fd1, fd2) {
|
||||
if (fd1) {
|
||||
fs_1.default.closeSync(fd1);
|
||||
}
|
||||
if (fd2) {
|
||||
fs_1.default.closeSync(fd2);
|
||||
}
|
||||
}
|
||||
function closeFilesAsync(fd1, fd2, fdQueue) {
|
||||
if (fd1 && fd2) {
|
||||
return fdQueue.closePromise(fd1).then(() => fdQueue.closePromise(fd2));
|
||||
}
|
||||
if (fd1) {
|
||||
return fdQueue.closePromise(fd1);
|
||||
}
|
||||
if (fd2) {
|
||||
return fdQueue.closePromise(fd2);
|
||||
}
|
||||
return Promise.resolve();
|
||||
}
|
||||
exports.FileCloser = {
|
||||
closeFilesSync,
|
||||
closeFilesAsync
|
||||
};
|
||||
//# sourceMappingURL=FileCloser.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue