diff --git a/src/Form/Domain301RedirectConfigForm.php b/src/Form/Domain301RedirectConfigForm.php
index 5dad7ff..3134a91 100644
--- a/src/Form/Domain301RedirectConfigForm.php
+++ b/src/Form/Domain301RedirectConfigForm.php
@@ -37,7 +37,7 @@ class Domain301RedirectConfigForm extends ConfigFormBase {
     $form['enabled'] = [
       '#type' => 'radios',
       '#title' => $this->t('Status'),
-      '#description' => t('Enable this setting to start 301 redirects to the domain below for all other domains.'),
+      '#description' => $this->t('Enable this setting to start 301 redirects to the domain below for all other domains.'),
       '#options' => [
         1 => $this->t('Enabled'),
         0 => $this->t('Disabled'),
@@ -85,8 +85,6 @@ class Domain301RedirectConfigForm extends ConfigFormBase {
    * {@inheritdoc}
    */
   public function validateForm(array &$form, FormStateInterface $form_state) {
-    $config = $this->config('domain_301_redirect.settings');
-
     $values = $form_state->getValues();
     if (!empty($values['enabled'])) {
       $domain = trim($values['domain']);
