Removed unnecessary IO operation to get the commit amend id

This commit is contained in:
Abdelilah El Aissaoui 2023-07-05 12:42:11 +02:00
parent 26bc7bacf1
commit 509bbf13e9
No known key found for this signature in database
GPG Key ID: 7587FC860F594869

View File

@ -360,7 +360,7 @@ class StatusViewModel @Inject constructor(
rebaseInteractiveState.isCurrentStepAmenable &&
isAmendRebaseInteractive.value
) {
val amendCommitId = getRebaseAmendCommitIdUseCase(git)
val amendCommitId = rebaseInteractiveState.commitToAmendId
if (!amendCommitId.isNullOrBlank()) {
doCommitUseCase(git, message, true, getPersonIdent(git))