From 7c2b0dce5c8016a4abc81666817bf05349df9810 Mon Sep 17 00:00:00 2001 From: Ravi Date: Fri, 1 Mar 2024 10:02:36 +1100 Subject: [PATCH] Fix detekt warning --- .../refresh/lists/sections/granular/usecases/OverviewUseCase.kt | 1 + .../refresh/lists/sections/traffic/TrafficOverviewUseCase.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/sections/granular/usecases/OverviewUseCase.kt b/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/sections/granular/usecases/OverviewUseCase.kt index 76505070f79d..60773b85b864 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/sections/granular/usecases/OverviewUseCase.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/sections/granular/usecases/OverviewUseCase.kt @@ -211,6 +211,7 @@ class OverviewUseCase constructor( } } + @Suppress("MagicNumber") private fun onColumnSelected(position: Int) { val event = when (position) { 0 -> AnalyticsTracker.Stat.STATS_OVERVIEW_TYPE_TAPPED_VIEWS diff --git a/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/sections/traffic/TrafficOverviewUseCase.kt b/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/sections/traffic/TrafficOverviewUseCase.kt index 72f4f46071c7..6dd519a3849e 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/sections/traffic/TrafficOverviewUseCase.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/stats/refresh/lists/sections/traffic/TrafficOverviewUseCase.kt @@ -290,6 +290,7 @@ class TrafficOverviewUseCase( } } + @Suppress("MagicNumber") private fun onColumnSelected(position: Int) { val event = when (position) { 0 -> AnalyticsTracker.Stat.STATS_OVERVIEW_TYPE_TAPPED_VIEWS