Kaynağa Gözat

Move this

master
Dylan Baker 4 yıl önce
ebeveyn
işleme
3c91d89a3c
1 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 4
    4
      lib/slack_mattermost_emoji/slack_client.rb

+ 4
- 4
lib/slack_mattermost_emoji/slack_client.rb Dosyayı Görüntüle

12
       @log = log
12
       @log = log
13
       @authenticated = false
13
       @authenticated = false
14
 
14
 
15
+      if [@username, @password, @domain].any? { |el| el.nil? || el.empty? }
16
+        raise 'Slack username, password, and domain are all required'
17
+      end
18
+
15
       Dir.mkdir(@download_path) unless Dir.exist?(@download_path)
19
       Dir.mkdir(@download_path) unless Dir.exist?(@download_path)
16
 
20
 
17
       options = Selenium::WebDriver::Chrome::Options.new
21
       options = Selenium::WebDriver::Chrome::Options.new
18
       options.headless! unless headless == false
22
       options.headless! unless headless == false
19
       @driver = Selenium::WebDriver.for :chrome, options: options
23
       @driver = Selenium::WebDriver.for :chrome, options: options
20
-
21
-      if [@username, @password, @domain].any? { |el| el.nil? || el.empty? }
22
-        raise 'Slack username, password, and domain are all required'
23
-      end
24
     end
24
     end
25
 
25
 
26
     def authenticate
26
     def authenticate

Loading…
İptal
Kaydet