mizozobu 6 лет назад
Родитель
Сommit
c03062eb65
1 измененных файлов с 2 добавлено и 7 удалено
  1. 2 7
      src/server/service/slack-notification.js

+ 2 - 7
src/server/service/slack-notification.js

@@ -9,13 +9,8 @@ class SlackNotificationService {
   }
 
   hasSlackConfig() {
-    let hasSlackToken = false;
-    let hasSlackIwhUrl = false;
-
-    if (this.configManager.configObject.notification) {
-      hasSlackToken = !!this.configManager.getConfig('notification', 'slack:token');
-      hasSlackIwhUrl = !!this.configManager.getConfig('notification', 'slack:incomingWebhookUrl');
-    }
+    const hasSlackToken = !!this.configManager.getConfig('notification', 'slack:token');
+    const hasSlackIwhUrl = !!this.configManager.getConfig('notification', 'slack:incomingWebhookUrl');
 
     return hasSlackToken || hasSlackIwhUrl;
   }