Commit 21b3bc23 authored by mark burdett's avatar mark burdett
Browse files

Issue #3321670 by mfb: Simplify logic

parent d92d53ad
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -409,12 +409,8 @@ function raven_seckit_options_alter(&$options) {
  if (!class_exists(Dsn::class)) {
    return;
  }
  $dsn = empty($_SERVER['SENTRY_DSN']) ? variable_get('raven_public_dsn') : $_SERVER['SENTRY_DSN'];
  if (NULL === $dsn) {
    return;
  }
  try {
    $dsn = Dsn::createFromString($dsn);
    $dsn = Dsn::createFromString(empty($_SERVER['SENTRY_DSN']) ? variable_get('raven_public_dsn', '') : $_SERVER['SENTRY_DSN']);
  }
  catch (InvalidArgumentException $e) {
    // Raven is incorrectly configured.