Skip to content

Commit f83938c

Browse files
committed
fix: simplify deprecated value warning condition
1 parent 416a2bd commit f83938c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nextjs/src/config/withSentryConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function migrateDeprecatedWebpackOptions(userSentryOptions: SentryBuildOptions):
113113
deprecatedValue: T | undefined,
114114
message: string,
115115
): T | undefined => {
116-
if (deprecatedValue !== undefined && deprecatedValue !== newValue) {
116+
if (deprecatedValue !== undefined) {
117117
// eslint-disable-next-line no-console
118118
console.warn(message);
119119
}

0 commit comments

Comments
 (0)