From 9b52e6381f81f41de3d906aa3f962de479689ac8 Mon Sep 17 00:00:00 2001 From: Sebastian Streich Date: Tue, 22 Nov 2022 19:21:52 +0100 Subject: [PATCH] linting --- src/constants.h | 11 +++++------ src/sentry/sentryadapter.cpp | 3 ++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/constants.h b/src/constants.h index 84e8ebf2bc..98c95fd4c2 100644 --- a/src/constants.h +++ b/src/constants.h @@ -86,14 +86,13 @@ CONSTEXPR(uint32_t, controllerPeriodicStateRecorderMsec, 10800000, 60000, 0) inline type functionName() { return inProduction() ? prod : beta; } #ifdef SENTRY_ENABLED - constexpr const char* SENTRY_DSN_ENDPOINT = SENTRY_DSN; - constexpr const char* SENTRY_ENVELOPE_INGESTION = SENTRY_ENVELOPE_ENDPOINT; -#else - constexpr const char* SENTRY_DSN_ENDPOINT = ""; - constexpr const char* SENTRY_ENVELOPE_INGESTION = ""; +constexpr const char* SENTRY_DSN_ENDPOINT = SENTRY_DSN; +constexpr const char* SENTRY_ENVELOPE_INGESTION = SENTRY_ENVELOPE_ENDPOINT; +#else +constexpr const char* SENTRY_DSN_ENDPOINT = ""; +constexpr const char* SENTRY_ENVELOPE_INGESTION = ""; #endif - constexpr const char* API_PRODUCTION_URL = "https://vpn.mozilla.org"; constexpr const char* API_STAGING_URL = "https://stage-vpn.guardian.nonprod.cloudops.mozgcp.net"; diff --git a/src/sentry/sentryadapter.cpp b/src/sentry/sentryadapter.cpp index 60002ccc79..226989a89c 100644 --- a/src/sentry/sentryadapter.cpp +++ b/src/sentry/sentryadapter.cpp @@ -37,7 +37,8 @@ void SentryAdapter::init() { if (!Feature::get(Feature::Feature_sentry)->isSupported()) { return; } - if ( QString(Constants::SENTRY_DSN_ENDPOINT).isEmpty() || QString(Constants::SENTRY_ENVELOPE_INGESTION).isEmpty() ){ + if (QString(Constants::SENTRY_DSN_ENDPOINT).isEmpty() || + QString(Constants::SENTRY_ENVELOPE_INGESTION).isEmpty()) { logger.error() << "Sentry failed to init, no sentry config present"; return; }