Skip to content

Commit 3bd61a6

Browse files
author
root
committed
Remove never happening case
1 parent f170f8a commit 3bd61a6

3 files changed

+0
-6
lines changed

Diff for: app/controllers/repository_git_config_keys_controller.rb

-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ def destroy
6868
if @git_config_key.destroy
6969
flash[:notice] = l(:notice_git_config_key_deleted)
7070
format.js { render :js => "window.location = #{success_url.to_json};" }
71-
else
72-
format.js { render :layout => false }
7371
end
7472
end
7573
end

Diff for: app/controllers/repository_mirrors_controller.rb

-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ def destroy
6868
if @mirror.destroy
6969
flash[:notice] = l(:notice_mirror_deleted)
7070
format.js { render :js => "window.location = #{success_url.to_json};" }
71-
else
72-
format.js { render :layout => false }
7371
end
7472
end
7573
end

Diff for: app/controllers/repository_post_receive_urls_controller.rb

-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ def destroy
6868
if @post_receive_url.destroy
6969
flash[:notice] = l(:notice_post_receive_url_deleted)
7070
format.js { render :js => "window.location = #{success_url.to_json};" }
71-
else
72-
format.js { render :layout => false }
7371
end
7472
end
7573
end

0 commit comments

Comments
 (0)