Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
strseb committed Nov 22, 2022
1 parent 891a0f9 commit 9b52e63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
3 changes: 2 additions & 1 deletion src/sentry/sentryadapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9b52e63

Please sign in to comment.