Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
SanmerDev committed Jun 29, 2024
1 parent a9f7699 commit 54d2908
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,12 @@ class ModulesViewModel @Inject constructor(
when (option) {
Option.Name -> compareByDescending { it.name.lowercase() }
Option.UpdatedTime -> compareBy { it.lastUpdated }
else -> compareByDescending { null }
}

} else {
when (option) {
Option.Name -> compareBy { it.name.lowercase() }
Option.UpdatedTime -> compareByDescending { it.lastUpdated }
else -> compareByDescending { null }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,12 @@ class RepositoryViewModel @Inject constructor(
when (option) {
Option.Name -> compareByDescending { it.second.name.lowercase() }
Option.UpdatedTime -> compareBy { it.first.lastUpdated }
else -> compareByDescending { null }
}

} else {
when (option) {
Option.Name -> compareBy { it.second.name.lowercase() }
Option.UpdatedTime -> compareByDescending { it.first.lastUpdated }
else -> compareByDescending { null }
}
}

Expand Down

0 comments on commit 54d2908

Please sign in to comment.