prettier
This commit is contained in:
@@ -317,7 +317,7 @@ module.exports.cleanupOldReleases = (versionList) => {
|
||||
if (versionList && versionList.length > 0) {
|
||||
const dataDir = _getDataDirectory();
|
||||
const directoryList = fs
|
||||
.readdirSync(dataDir, { withFileTypes: true })
|
||||
.readdirSync(dataDir, {withFileTypes: true})
|
||||
.filter((dirent) => dirent.isDirectory())
|
||||
.map((dirent) => dirent);
|
||||
|
||||
@@ -823,7 +823,7 @@ module.exports.getMissingDependencies = (dependencies) => {
|
||||
}
|
||||
|
||||
const key = dep.registry[index].substr(hiveName.length);
|
||||
const regKey = new Registry({ hive: hive, key: key });
|
||||
const regKey = new Registry({hive: hive, key: key});
|
||||
regKey.valueExists('DisplayName', (err, exists) => {
|
||||
if (err || !exists) {
|
||||
regKey.valueExists('ProductName', (err, exists) => {
|
||||
@@ -1002,7 +1002,7 @@ module.exports.importSkylinks = (version, jsonArray) => {
|
||||
};
|
||||
|
||||
// https://stackoverflow.com/questions/31645738/how-to-create-full-path-with-nodes-fs-mkdirsync
|
||||
module.exports.mkDirByPathSync = (targetDir, { isRelativeToScript = false } = {}) => {
|
||||
module.exports.mkDirByPathSync = (targetDir, {isRelativeToScript = false} = {}) => {
|
||||
const sep = path.sep;
|
||||
const initDir = path.isAbsolute(targetDir) ? sep : '';
|
||||
const baseDir = isRelativeToScript ? __dirname : '.';
|
||||
|
||||
Reference in New Issue
Block a user