From 18629d8184a985d9fe9f9bf892952044b1e5d57f Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Thu, 2 Jul 2015 09:34:57 -0400
Subject: make loop simpler

---
 web/react/utils/utils.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/react/utils/utils.jsx')

diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index 13cb0ff53..f8a7d6450 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -736,7 +736,7 @@ module.exports.getDirectTeammate = function(channel_id) {
         return teammate;
     }
 
-    for (var idx = 0; idx < userIds.length; idx++) {
+    for (var idx in userIds) {
         if(userIds[idx] !== curUserId) {
             teammate = UserStore.getProfile(userIds[idx]);
             break;
-- 
cgit v1.2.3-1-g7c22

