message: fix: Don't call `NATIVE.fetchRelease` if release and dist already exists on the event
diff: @@ -24,16 +24,6 @@ export class Release implements Integration {
  return event;
  }
  - try {
  - const release = await NATIVE.fetchRelease();
  - if (release) {
  - event.release = `${release.id}@${release.version}+${release.build}`;
  - event.dist = `${release.build}`;
  - }
  - } catch (_Oo) {
  - // Something went wrong, we just continue
  - }
  -
  const options = getCurrentHub().getClient()?.getOptions();
  /*
  @@ -52,6 +42,20 @@ export class Release implements Integration {
  event.dist = options.dist;
  }
  + if (event.release && event.dist) {
  + return event;
  + }
  +
  + try {
  + const release = await NATIVE.fetchRelease();
  + if (release) {
  + event.release = `${release.id}@${release.version}+${release.build}`;
  + event.dist = `${release.build}`;
  + }
  + } catch (_Oo) {
  + // Something went wrong, we just continue
  + }
  +
  return event;
  });
  }
  