From 74e08a67adfe597b80abc09ba596eb9955558556 Mon Sep 17 00:00:00 2001
From: Nik Revenco <154856872+NikitaRevenco@users.noreply.github.com>
Date: Thu, 20 Mar 2025 02:36:01 +0000
Subject: [PATCH] refactor: collapse match arm

---
 helix-vcs/src/git/blame.rs | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/helix-vcs/src/git/blame.rs b/helix-vcs/src/git/blame.rs
index 607f06bc..dbf44679 100644
--- a/helix-vcs/src/git/blame.rs
+++ b/helix-vcs/src/git/blame.rs
@@ -1,7 +1,7 @@
 use anyhow::Context as _;
 use gix::bstr::BStr;
 use helix_core::hashmap;
-use std::{collections::HashMap, path::Path};
+use std::path::Path;
 
 use super::{get_repo_dir, open_repo};
 
@@ -77,16 +77,7 @@ impl BlameInformation {
                 );
 
                 match variable_value {
-                    Variable::Valid(value) => {
-                        if exclude_content_after_variable {
-                            // don't push anything.
-                            exclude_content_after_variable = false;
-                        } else {
-                            formatted.push_str(&content_before_variable);
-                        }
-                        formatted.push_str(&value);
-                    }
-                    Variable::Invalid(value) => {
+                    Variable::Valid(value) | Variable::Invalid(value) => {
                         if exclude_content_after_variable {
                             // don't push anything.
                             exclude_content_after_variable = false;