Skip to content

Commit 70cf911

Browse files
dcalhounclaude
andcommitted
style: suppress ReturnCount on the processor's decision-table methods
processVideo and processImage are guard-clause decision tables where early returns read clearer than nesting; suppress ReturnCount to match the existing house style rather than fragment the logic. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 898fb53 commit 70cf911

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class GBKMediaUploadProcessor(
7777
}
7878
}
7979

80+
@Suppress("ReturnCount")
8081
private suspend fun processVideo(file: File, filename: String): ProcessedProxyFile {
8182
if (mediaUtilsWrapper.isProhibitedVideoDuration(appContext, site, file)) {
8283
throw GBKMediaUploadException(
@@ -163,6 +164,7 @@ class GBKMediaUploadProcessor(
163164
composer.start()
164165
}
165166

167+
@Suppress("ReturnCount")
166168
private fun processImage(file: File, mimeType: String, filename: String): ProcessedProxyFile {
167169
// getOptimizedMedia returns null when optimization is disabled or a no-op. It can also
168170
// return the *input* path unchanged (GIF-like skips, decode failures inside

0 commit comments

Comments
 (0)