Skip to content

Commit 061345b

Browse files
committed
remove elseIf
1 parent 5981644 commit 061345b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/bundler-plugin-core/src/build-plugin-manager.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -728,22 +728,26 @@ function canUploadSourceMaps(
728728
"Source map upload was disabled. Will not upload sourcemaps using debug ID process."
729729
);
730730
return false;
731-
} else if (isDevMode) {
731+
}
732+
if (isDevMode) {
732733
logger.debug("Running in development mode. Will not upload sourcemaps.");
733734
return false;
734-
} else if (!options.authToken) {
735+
}
736+
if (!options.authToken) {
735737
logger.warn(
736738
"No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/" +
737739
getTurborepoEnvPassthroughWarning("SENTRY_AUTH_TOKEN")
738740
);
739741
return false;
740-
} else if (!options.org && !options.authToken.startsWith("sntrys_")) {
742+
}
743+
if (!options.org && !options.authToken.startsWith("sntrys_")) {
741744
logger.warn(
742745
"No org provided. Will not upload source maps. Please set the `org` option to your Sentry organization slug." +
743746
getTurborepoEnvPassthroughWarning("SENTRY_ORG")
744747
);
745748
return false;
746-
} else if (!options.project) {
749+
}
750+
if (!options.project) {
747751
logger.warn(
748752
"No project provided. Will not upload source maps. Please set the `project` option to your Sentry project slug." +
749753
getTurborepoEnvPassthroughWarning("SENTRY_PROJECT")

0 commit comments

Comments
 (0)