Browse Source

Order matters

master
Dylan Baker 4 years ago
parent
commit
c2ef7238b2
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      lib/slack_mattermost_emoji/slack_client.rb

+ 1
- 2
lib/slack_mattermost_emoji/slack_client.rb View File

@@ -65,9 +65,8 @@ module SlackMattermostEmoji
65 65
       puts "found #{emoji_count} emoji" if @log
66 66
 
67 67
       data['emoji'].each_with_index do |emoji, index|
68
-        next if URI(image_url).scheme == 'alias'
69
-
70 68
         name, image_url = emoji
69
+        next if URI(image_url).scheme == 'alias'
71 70
 
72 71
         puts "#{(index + 1).to_s.rjust(digits, ' ')}/#{emoji_count} :#{name}:" if @log
73 72
 

Loading…
Cancel
Save