Skip to content

Commit

Permalink
Fix eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbiesek committed Dec 23, 2024
1 parent ddfe814 commit 673162e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/NodeBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class NodeJsBuilder {
.on('finish', resolve);
})
)
.then(() => this.version.split('.')[0] >= 15 ? this.applyPatches() : Promise.resolve())
.then(() => this.version.split('.')[0] >= 15 ? this.applyPatches() : Promise.resolve());
}

downloadCachedBuild(platform, arch, placeHolderSizeMB) {
Expand Down Expand Up @@ -218,7 +218,7 @@ class NodeJsBuilder {
join(this.patchDir, 'vcbuild.bat.patch'));

isLinux && await patchFile(
this.nodePath('deps','cares','config','linux','ares_config.h'),
this.nodePath('deps', 'cares', 'config', 'linux', 'ares_config.h'),
join(this.patchDir, 'no_rand_on_glibc.patch'));
}

Expand Down Expand Up @@ -265,9 +265,9 @@ class NodeJsBuilder {
buildFromSource(uploadBuild, cache, container, arch, ptrCompression) {
const makeArgs = isWindows ? ['x64', 'no-cctest'] : [`-j${os.cpus().length}`];
const configArgs = [];
if(ptrCompression) {
if(isWindows) makeArgs.push('v8_ptr_compress');
else configArgs.push('--experimental-enable-pointer-compression');
if (ptrCompression) {
if (isWindows) makeArgs.push('v8_ptr_compress');
else configArgs.push('--experimental-enable-pointer-compression');
}
return this.printDiskUsage()
.then(() => this.downloadExpandNodeSource())
Expand Down Expand Up @@ -306,7 +306,7 @@ class NodeJsBuilder {
if (this.placeHolderSizeMB % 2 !== 0) {
this.placeHolderSizeMB += 1;
}
if (size) this.placeHolderSizeMB = parseInt( size.toUpperCase().replaceAll('MB', '') )
if (size) this.placeHolderSizeMB = parseInt(size.toUpperCase().replaceAll('MB', ''));

return this.downloadCachedBuild(platform, arch)
.then(cachedFile => {
Expand Down

0 comments on commit 673162e

Please sign in to comment.