Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Conversation

@vidhu
Copy link
Contributor

@vidhu vidhu commented Mar 28, 2023

Addresses #121

console.log('@sentry/profiling-node: Precompiled binary found, attempting to load...');
require(target);
console.log('@sentry/profiling-node: Precompiled binary found, skipping build from source.');
if(!existsSync(target)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, do you mind just inverting these two conditions for readability and drop the negation?

if(exists){
  require
} else {
  recompile
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup! just pushed the requested changes

@JonasBa JonasBa merged commit 3997d82 into getsentry:main Mar 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants