Skip to content

Commit

Permalink
lint: timber - use string format instead of concatenation
Browse files Browse the repository at this point in the history
fixed this by just reducing the wall of text to a one-liner
  • Loading branch information
mikehardy committed Oct 20, 2024
1 parent 0106152 commit e78ee74
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,7 @@ class SharedDecksDownloadFragment : Fragment(R.layout.fragment_shared_decks_down

// Return if mDownloadId does not match with the ID of the completed download.
if (downloadId != intent?.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, 0)) {
Timber.w(
"Download ID did not match with the ID of the completed download. " +
"Download completion related to some other download might have been received. " +
"Deck download might still be going on, when it completes then the method would be called again."
)
Timber.w("Download id did not match expected id. Ignoring this download completion")
return false
}

Expand Down

0 comments on commit e78ee74

Please sign in to comment.