Skip to content

Commit

Permalink
Modified AbstractDescriptor definition
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel committed Feb 16, 2024
1 parent 1b2ac66 commit 4bf6085
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ abstract class AbstractDescriptor<T : BaseNettest>(
* @param preferenceManager The [PreferenceManager] instance used to resolve the status of each nettest.
* @return Boolean Returns true if at least one nettest is enabled, false otherwise.
*/
fun isEnabled(preferenceManager: PreferenceManager): Boolean {
open fun isEnabled(preferenceManager: PreferenceManager): Boolean {
return when (name) {
OONITests.EXPERIMENTAL.label -> preferenceManager.isExperimentalOn
OONITests.WEBSITES.label -> preferenceManager.countEnabledCategory() > 0
Expand Down

0 comments on commit 4bf6085

Please sign in to comment.