瀏覽代碼

Chore: remove unused check

kr328 4 年之前
父節點
當前提交
a6f6da5bc5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/src/premium/java/com/github/kr328/clash/Tracker.kt

+ 2 - 2
app/src/premium/java/com/github/kr328/clash/Tracker.kt

@@ -8,7 +8,7 @@ import com.microsoft.appcenter.crashes.ingestion.models.ErrorAttachmentLog
 
 object Tracker {
     fun initialize(application: Application) {
-        if (BuildConfig.APP_CENTER_KEY != null && !BuildConfig.DEBUG) {
+        if (!BuildConfig.DEBUG) {
             AppCenter.start(
                 application,
                 BuildConfig.APP_CENTER_KEY,
@@ -18,7 +18,7 @@ object Tracker {
     }
 
     fun uploadLogcat(logcat: String) {
-        if (BuildConfig.APP_CENTER_KEY != null && !BuildConfig.DEBUG) {
+        if (!BuildConfig.DEBUG) {
             if (logcat.isNotBlank()) {
                 Crashes.trackError(
                     RuntimeException(),