Skip to content

Commit

Permalink
[Refactor] Minor refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed Sep 19, 2023
1 parent 1c156ff commit 3433a74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ private fun FileJob.showActionDialog(
neutralButtonText: CharSequence?
): ActionResult =
try {
runBlocking<ActionResult> {
runBlocking {
suspendCoroutine { continuation ->
BackgroundActivityStarter.startActivity(
FileJobActionDialogActivity::class.createIntent().putArgs(
Expand Down Expand Up @@ -521,7 +521,7 @@ private fun FileJob.showConflictDialog(
type: CopyMoveType
): ConflictResult =
try {
runBlocking<ConflictResult> {
runBlocking {
suspendCoroutine { continuation ->
BackgroundActivityStarter.startActivity(
FileJobConflictDialogActivity::class.createIntent().putArgs(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,8 @@ object ArchiveReader {
val (archive, closeable) = openArchive(file)
var successful = false
return try {
var currentEntry: ReadArchive.Entry? = null
while (true) {
currentEntry = archive.readEntry(charset) ?: break
val currentEntry = archive.readEntry(charset) ?: break
if (currentEntry.name != entry.name) {
continue
}
Expand Down

0 comments on commit 3433a74

Please sign in to comment.