mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
FeatureUsageFileEventLoggerProvider: do cheaper checks first
This commit is contained in:
+2
-2
@@ -37,8 +37,8 @@ class FeatureUsageFileEventLoggerProvider : FeatureUsageEventLoggerProvider {
|
||||
}
|
||||
|
||||
override fun isEnabled(): Boolean {
|
||||
return StatisticsUploadAssistant.isSendAllowed() &&
|
||||
return !ApplicationManager.getApplication().isUnitTestMode &&
|
||||
Registry.`is`("feature.usage.event.log.collect.and.upload") &&
|
||||
!ApplicationManager.getApplication().isUnitTestMode
|
||||
StatisticsUploadAssistant.isSendAllowed()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user