From ee7374a9fb16ca65603ef095de2856694612d68f Mon Sep 17 00:00:00 2001
From: Hiroyuki Sato <h-sato@ruby-dev.jp>
Date: Fri, 28 Oct 2016 21:48:40 +0900
Subject: [PATCH] Separete a very long line

---
 app/controllers/projects/network_controller.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/app/controllers/projects/network_controller.rb b/app/controllers/projects/network_controller.rb
index 54783bbc5bb..3dbc7a492b5 100644
--- a/app/controllers/projects/network_controller.rb
+++ b/app/controllers/projects/network_controller.rb
@@ -12,7 +12,9 @@ class Projects::NetworkController < Projects::ApplicationController
 
     respond_to do |format|
       format.html do
-        flash.now[:alert] = "Git revision '#{params[:extended_sha1]}' does not exist." if params[:extended_sha1].present? && !@commit
+        if params[:extended_sha1].present? && !@commit
+          flash.now[:alert] = "Git revision '#{params[:extended_sha1]}' does not exist."
+        end
       end
 
       format.json do
-- 
GitLab