mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
Simplify code
This commit is contained in:
1 parent
2258fb2713
commit
30993a8bfc
1 file changed
+3
-12
+3
-12
@@ -108,30 +108,21 @@ impl<'a> SyntaxMapping<'a> {
|
||||
|
||||
mapping
|
||||
.insert(
|
||||
&git_config_path
|
||||
.join("config")
|
||||
.into_os_string()
|
||||
.to_string_lossy(),
|
||||
&git_config_path.join("config").to_string_lossy(),
|
||||
MappingTarget::MapTo("Git Config"),
|
||||
)
|
||||
.ok();
|
||||
|
||||
mapping
|
||||
.insert(
|
||||
&git_config_path
|
||||
.join("ignore")
|
||||
.into_os_string()
|
||||
.to_string_lossy(),
|
||||
&git_config_path.join("ignore").to_string_lossy(),
|
||||
MappingTarget::MapTo("Git Ignore"),
|
||||
)
|
||||
.ok();
|
||||
|
||||
mapping
|
||||
.insert(
|
||||
&git_config_path
|
||||
.join("attributes")
|
||||
.into_os_string()
|
||||
.to_string_lossy(),
|
||||
&git_config_path.join("attributes").to_string_lossy(),
|
||||
MappingTarget::MapTo("Git Attributes"),
|
||||
)
|
||||
.ok();
|
||||
|
||||
Reference in new issue
Block a user