Skip to content

Commit

Permalink
fix detekt
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Feb 10, 2025
1 parent 1771c92 commit 9b59ad7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class MediaFoldersDetectionWork constructor(

private val randomIdGenerator = Random(clock.currentTime)

@Suppress("LongMethod", "ComplexMethod", "NestedBlockDepth") // legacy code
@Suppress("LongMethod", "ComplexMethod", "NestedBlockDepth", "ReturnCount") // legacy code
override fun doWork(): Result {
val arbitraryDataProvider: ArbitraryDataProvider = ArbitraryDataProviderImpl(context)
val gson = Gson()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ object PermissionUtil {
* Request a storage permission
*/
// TODO inject this class to avoid passing ViewThemeUtils around
@Suppress("NestedBlockDepth")
private fun requestStoragePermission(
activity: Activity,
readOnly: Boolean,
Expand Down Expand Up @@ -318,6 +319,7 @@ object PermissionUtil {
*
* @param activity target activity
*/
@Suppress("ReturnCount")
@JvmStatic
fun requestMediaLocationPermission(activity: Activity) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
Expand Down

0 comments on commit 9b59ad7

Please sign in to comment.