Skip to content

Commit 33b1d76

Browse files
committed
add newline and .filter(boolean)
1 parent a47c44a commit 33b1d76

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/profiling-node/scripts/binaries.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ function getModuleName() {
1111

1212
if (platform === 'darwin' && arch === 'arm64') {
1313
const identifier = [platform, 'arm64', abi.getAbi(process.versions.node, 'node')]
14-
.filter(c => c !== undefined && c !== null)
14+
.filter(Boolean)
1515
.join('-');
1616
return `sentry_cpu_profiler-${identifier}.node`;
1717
}
1818

1919
const identifier = [platform, arch, stdlib, abi.getAbi(process.versions.node, 'node')]
20-
.filter(c => c !== undefined && c !== null)
20+
.filter(Boolean)
2121
.join('-');
2222

2323
return `sentry_cpu_profiler-${identifier}.node`;

packages/profiling-node/scripts/bump-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ npm version "${NEW_VERSION}"
1111

1212
echo "// This is an auto generated file. Do not edit this file directly.
1313
// The version is bumped by scripts/bump_version.sh
14-
export const SDK_VERSION = '${NEW_VERSION}';" > src/sdk_version.ts
14+
export const SDK_VERSION = '${NEW_VERSION}';" > src/sdk_version.ts

0 commit comments

Comments
 (0)