aboutsummaryrefslogtreecommitdiff
path: root/helix-loader
diff options
context:
space:
mode:
Diffstat (limited to 'helix-loader')
-rw-r--r--helix-loader/src/grammar.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/helix-loader/src/grammar.rs b/helix-loader/src/grammar.rs
index 537e1282..7977c6df 100644
--- a/helix-loader/src/grammar.rs
+++ b/helix-loader/src/grammar.rs
@@ -86,10 +86,8 @@ pub fn get_language(name: &str) -> Result<Language> {
}
fn ensure_git_is_available() -> Result<()> {
- match helix_stdx::env::which("git") {
- Ok(_cmd) => Ok(()),
- Err(err) => Err(anyhow::anyhow!("'git' could not be found ({err})")),
- }
+ helix_stdx::env::which("git")?;
+ Ok(())
}
pub fn fetch_grammars() -> Result<()> {