git_panel: Fix amend check (#29059)

`is_some` -> `is_none` 

Release Notes:

- N/A
This commit is contained in:
Smit Barmase 2025-04-18 22:24:49 +05:30 committed by GitHub
parent c7fc95e732
commit c585dbd8ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -545,7 +545,7 @@ impl CommitModal {
.active_repository
.as_ref()
.and_then(|repo| repo.read(cx).head_commit.as_ref())
.is_some()
.is_none()
{
return;
}