From 21620943b030ce8e59fff2fd994ae83446de3889 Mon Sep 17 00:00:00 2001
From: Grzegorz Bizon <grzesiek.bizon@gmail.com>
Date: Mon, 30 May 2016 10:24:02 +0200
Subject: [PATCH] Enable Lint/BlockAlignment Rubocop cop

See #17478
---
 .rubocop.yml                 | 2 +-
 app/helpers/issues_helper.rb | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.rubocop.yml b/.rubocop.yml
index 2d8eb4077f3..35f603c896f 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -785,7 +785,7 @@ Lint/AssignmentInCondition:
 
 # Align block ends correctly.
 Lint/BlockAlignment:
-  Enabled: false
+  Enabled: true
 
 # Default values in optional keyword arguments and optional ordinal arguments
 # should not refer back to the name of the argument.
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index 551409e8855..173bdbb8654 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -147,8 +147,8 @@ module IssuesHelper
 
   def emoji_author_list(notes, current_user)
     list = notes.map do |note|
-             note.author == current_user ? "me" : note.author.name
-           end
+      note.author == current_user ? "me" : note.author.name
+    end
 
     list.join(", ")
   end
-- 
GitLab