Fixed typo in class name

This commit is contained in:
Abdelilah El Aissaoui 2023-06-04 18:39:30 +02:00
parent d6e5e22aa0
commit f4f17fc65c
No known key found for this signature in database
GPG Key ID: 7587FC860F594869
3 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ import kotlinx.coroutines.withContext
import org.eclipse.jgit.api.Git import org.eclipse.jgit.api.Git
import javax.inject.Inject import javax.inject.Inject
class CheckHasUncommitedChangedUseCase @Inject constructor() { class CheckHasUncommitedChangesUseCase @Inject constructor() {
suspend operator fun invoke(git: Git) = withContext(Dispatchers.IO) { suspend operator fun invoke(git: Git) = withContext(Dispatchers.IO) {
val status = git val status = git
.status() .status()

View File

@ -18,7 +18,7 @@ import com.jetpackduba.gitnuro.git.remote_operations.PullFromSpecificBranchUseCa
import com.jetpackduba.gitnuro.git.remote_operations.PushToSpecificBranchUseCase import com.jetpackduba.gitnuro.git.remote_operations.PushToSpecificBranchUseCase
import com.jetpackduba.gitnuro.git.tags.CreateTagOnCommitUseCase import com.jetpackduba.gitnuro.git.tags.CreateTagOnCommitUseCase
import com.jetpackduba.gitnuro.git.tags.DeleteTagUseCase import com.jetpackduba.gitnuro.git.tags.DeleteTagUseCase
import com.jetpackduba.gitnuro.git.workspace.CheckHasUncommitedChangedUseCase import com.jetpackduba.gitnuro.git.workspace.CheckHasUncommitedChangesUseCase
import com.jetpackduba.gitnuro.git.workspace.GetStatusSummaryUseCase import com.jetpackduba.gitnuro.git.workspace.GetStatusSummaryUseCase
import com.jetpackduba.gitnuro.git.workspace.StatusSummary import com.jetpackduba.gitnuro.git.workspace.StatusSummary
import com.jetpackduba.gitnuro.preferences.AppSettings import com.jetpackduba.gitnuro.preferences.AppSettings
@ -49,7 +49,7 @@ private const val LOG_MIN_TIME_IN_MS_TO_SHOW_LOAD = 500L
class LogViewModel @Inject constructor( class LogViewModel @Inject constructor(
private val getLogUseCase: GetLogUseCase, private val getLogUseCase: GetLogUseCase,
private val getStatusSummaryUseCase: GetStatusSummaryUseCase, private val getStatusSummaryUseCase: GetStatusSummaryUseCase,
private val checkHasUncommitedChangedUseCase: CheckHasUncommitedChangedUseCase, private val checkHasUncommitedChangesUseCase: CheckHasUncommitedChangesUseCase,
private val getCurrentBranchUseCase: GetCurrentBranchUseCase, private val getCurrentBranchUseCase: GetCurrentBranchUseCase,
private val checkoutRefUseCase: CheckoutRefUseCase, private val checkoutRefUseCase: CheckoutRefUseCase,
private val createBranchOnCommitUseCase: CreateBranchOnCommitUseCase, private val createBranchOnCommitUseCase: CreateBranchOnCommitUseCase,
@ -271,7 +271,7 @@ class LogViewModel @Inject constructor(
private suspend fun uncommitedChangesLoadLog(git: Git) { private suspend fun uncommitedChangesLoadLog(git: Git) {
val currentBranch = getCurrentBranchUseCase(git) val currentBranch = getCurrentBranchUseCase(git)
val hasUncommitedChanges = checkHasUncommitedChangedUseCase(git) val hasUncommitedChanges = checkHasUncommitedChangesUseCase(git)
val statsSummary = if (hasUncommitedChanges) { val statsSummary = if (hasUncommitedChanges) {
getStatusSummaryUseCase( getStatusSummaryUseCase(

View File

@ -48,7 +48,7 @@ class StatusViewModel @Inject constructor(
private val getStatusUseCase: GetStatusUseCase, private val getStatusUseCase: GetStatusUseCase,
private val getStagedUseCase: GetStagedUseCase, private val getStagedUseCase: GetStagedUseCase,
private val getUnstagedUseCase: GetUnstagedUseCase, private val getUnstagedUseCase: GetUnstagedUseCase,
private val checkHasUncommitedChangedUseCase: CheckHasUncommitedChangedUseCase, private val checkHasUncommitedChangesUseCase: CheckHasUncommitedChangesUseCase,
private val doCommitUseCase: DoCommitUseCase, private val doCommitUseCase: DoCommitUseCase,
private val loadAuthorUseCase: LoadAuthorUseCase, private val loadAuthorUseCase: LoadAuthorUseCase,
private val saveAuthorUseCase: SaveAuthorUseCase, private val saveAuthorUseCase: SaveAuthorUseCase,
@ -251,7 +251,7 @@ class StatusViewModel @Inject constructor(
} }
private suspend fun loadHasUncommitedChanges(git: Git) = withContext(Dispatchers.IO) { private suspend fun loadHasUncommitedChanges(git: Git) = withContext(Dispatchers.IO) {
lastUncommitedChangesState = checkHasUncommitedChangedUseCase(git) lastUncommitedChangesState = checkHasUncommitedChangesUseCase(git)
} }
fun amend(isAmend: Boolean) { fun amend(isAmend: Boolean) {