remove unneeded var

This commit is contained in:
Vladan Popovic 2024-01-07 18:25:34 +01:00
parent cffd91bd5d
commit 0c393bc860
1 changed files with 1 additions and 2 deletions

View File

@ -11,8 +11,7 @@ impl SocialRepo {
Repository::open(path) Repository::open(path)
.map(|repo| Self { repo }) .map(|repo| Self { repo })
.map_err(|_| { .map_err(|_| {
let err = "fatal: not a git repository"; SocialError::from("fatal: not a git repository")
SocialError::from(err)
}) })
} }