Skip to content

Commit 9b59ad7

Browse files
committed
fix detekt
Signed-off-by: alperozturk <[email protected]>
1 parent 1771c92 commit 9b59ad7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/src/main/java/com/nextcloud/client/jobs/MediaFoldersDetectionWork.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class MediaFoldersDetectionWork constructor(
7575

7676
private val randomIdGenerator = Random(clock.currentTime)
7777

78-
@Suppress("LongMethod", "ComplexMethod", "NestedBlockDepth") // legacy code
78+
@Suppress("LongMethod", "ComplexMethod", "NestedBlockDepth", "ReturnCount") // legacy code
7979
override fun doWork(): Result {
8080
val arbitraryDataProvider: ArbitraryDataProvider = ArbitraryDataProviderImpl(context)
8181
val gson = Gson()

app/src/main/java/com/owncloud/android/utils/PermissionUtil.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ object PermissionUtil {
137137
* Request a storage permission
138138
*/
139139
// TODO inject this class to avoid passing ViewThemeUtils around
140+
@Suppress("NestedBlockDepth")
140141
private fun requestStoragePermission(
141142
activity: Activity,
142143
readOnly: Boolean,
@@ -318,6 +319,7 @@ object PermissionUtil {
318319
*
319320
* @param activity target activity
320321
*/
322+
@Suppress("ReturnCount")
321323
@JvmStatic
322324
fun requestMediaLocationPermission(activity: Activity) {
323325
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {

0 commit comments

Comments
 (0)