We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 992801d commit 74e08a6Copy full SHA for 74e08a6
helix-vcs/src/git/blame.rs
@@ -1,7 +1,7 @@
1
use anyhow::Context as _;
2
use gix::bstr::BStr;
3
use helix_core::hashmap;
4
-use std::{collections::HashMap, path::Path};
+use std::path::Path;
5
6
use super::{get_repo_dir, open_repo};
7
@@ -77,16 +77,7 @@ impl BlameInformation {
77
);
78
79
match variable_value {
80
- Variable::Valid(value) => {
81
- if exclude_content_after_variable {
82
- // don't push anything.
83
- exclude_content_after_variable = false;
84
- } else {
85
- formatted.push_str(&content_before_variable);
86
- }
87
- formatted.push_str(&value);
88
89
- Variable::Invalid(value) => {
+ Variable::Valid(value) | Variable::Invalid(value) => {
90
if exclude_content_after_variable {
91
// don't push anything.
92
exclude_content_after_variable = false;
0 commit comments