Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Supress long method for events
Browse files Browse the repository at this point in the history
  • Loading branch information
Elise Richards committed Jul 20, 2020
1 parent 7a7b8c6 commit 68eaf19
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import org.mozilla.fenix.R
import org.mozilla.fenix.search.awesomebar.ShortcutsSuggestionProvider
import java.util.Locale

@Suppress("LongMethod")
sealed class Event {

// Interaction Events
Expand Down Expand Up @@ -520,6 +521,7 @@ sealed class Event {
get() = null
}

@Suppress("LongMethod")
private fun Fact.toEvent(): Event? = when (Pair(component, item)) {
Component.FEATURE_FINDINPAGE to FindInPageFacts.Items.CLOSE -> Event.FindInPageClosed
Component.FEATURE_FINDINPAGE to FindInPageFacts.Items.INPUT -> Event.FindInPageSearchCommitted
Expand Down

0 comments on commit 68eaf19

Please sign in to comment.