From b690c19dbf9a74e356b75e1da63f7dcf237a8c81 Mon Sep 17 00:00:00 2001
From: Bryce Johnson <bryce@gitlab.com>
Date: Thu, 8 Sep 2016 17:22:14 +0200
Subject: [PATCH] Use parentheses in IFFE's as per AirBnb styleguide.

---
 app/assets/javascripts/profile/profile.js.es6     | 3 ++-
 app/assets/javascripts/search_autocomplete.js.es6 | 2 +-
 app/assets/javascripts/todos.js.es6               | 2 +-
 app/assets/javascripts/user.js.es6                | 2 +-
 app/assets/javascripts/user_tabs.js.es6           | 2 +-
 5 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/app/assets/javascripts/profile/profile.js.es6 b/app/assets/javascripts/profile/profile.js.es6
index c7498c68e7c..e62e0a89867 100644
--- a/app/assets/javascripts/profile/profile.js.es6
+++ b/app/assets/javascripts/profile/profile.js.es6
@@ -1,4 +1,5 @@
-(global => {
+((global) => {
+
   class Profile {
     constructor(opts = {}) {
       this.onSubmitForm = this.onSubmitForm.bind(this);
diff --git a/app/assets/javascripts/search_autocomplete.js.es6 b/app/assets/javascripts/search_autocomplete.js.es6
index 781e0cd782c..d1e8c79336a 100644
--- a/app/assets/javascripts/search_autocomplete.js.es6
+++ b/app/assets/javascripts/search_autocomplete.js.es6
@@ -1,4 +1,4 @@
-(global => {
+((global) => {
 
   const KEYCODE = {
     ESCAPE: 27,
diff --git a/app/assets/javascripts/todos.js.es6 b/app/assets/javascripts/todos.js.es6
index a0386dcc018..fd85b7506ce 100644
--- a/app/assets/javascripts/todos.js.es6
+++ b/app/assets/javascripts/todos.js.es6
@@ -1,4 +1,4 @@
-(global => {
+((global) => {
 
   class Todos {
     constructor(opts = {}) {
diff --git a/app/assets/javascripts/user.js.es6 b/app/assets/javascripts/user.js.es6
index c5893745d74..6930d14094c 100644
--- a/app/assets/javascripts/user.js.es6
+++ b/app/assets/javascripts/user.js.es6
@@ -1,4 +1,4 @@
-(global => {
+((global) => {
   global.User = class {
     constructor(opts) {
       this.opts = opts;
diff --git a/app/assets/javascripts/user_tabs.js.es6 b/app/assets/javascripts/user_tabs.js.es6
index b787700070e..4a69a79118e 100644
--- a/app/assets/javascripts/user_tabs.js.es6
+++ b/app/assets/javascripts/user_tabs.js.es6
@@ -57,7 +57,7 @@ content on the Users#show page.
      </div>
    </div>
 */
-(global => {
+((global) => {
   class UserTabs {
     constructor (opts) {
       this.loaded = {};
-- 
GitLab