clean up unnecessary sentry stack (#7758)

This commit is contained in:
James Gatz 2024-07-25 17:51:18 +02:00 committed by GitHub
parent 225b2665f0
commit 785134421a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,3 @@
import { SentryError } from '@sentry/utils';
const STATE_IN_NUN_VAR = 'nunvar';
const STATE_IN_NUN_TAG = 'nuntag';
const STATE_IN_NUN_COM = 'nuncom';
@ -38,7 +36,7 @@ function ensureStringify(val?: string | Object): string {
try {
defaultVal = JSON.stringify(val);
} catch (error) {
SentryError.captureStackTrace(error);
// If we can't stringify, just return the default
}
return defaultVal;