Skip to content

Commit ada3932

Browse files
dcalhounclaude
andcommitted
style: drop stale SwallowedException suppression on transcodeVideo
transcodeVideo logs each caught exception via .message, so Detekt's SwallowedException never fires — only TooGenericExceptionCaught does (NullPointerException and Exception are both on its generic-names list). Trim the suppression to the rule that actually triggers. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 85831df commit ada3932

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

WordPress/src/main/java/org/wordpress/android/ui/posts/editor/GBKMediaUploadProcessor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class GBKMediaUploadProcessor(
108108
* [org.wordpress.android.ui.uploads.VideoOptimizer] semantics: any failure (no composer,
109109
* m4m error) resolves to null so the caller falls back to uploading the original.
110110
*/
111-
@Suppress("TooGenericExceptionCaught", "SwallowedException")
111+
@Suppress("TooGenericExceptionCaught")
112112
private suspend fun transcodeVideo(input: File): File? = suspendCancellableCoroutine { continuation ->
113113
val output = File(appContext.cacheDir, MediaUtils.generateTimeStampedFileName(MIME_MP4))
114114
val listener = object : IProgressListener {

0 commit comments

Comments
 (0)