Commit 76089b94 authored by Rémy Coutable's avatar Rémy Coutable

Fix Rubocop offense

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent fbd6831d
......@@ -17,7 +17,7 @@ class Projects::MirrorsController < Projects::ApplicationController
@project.force_import_job!
flash[:notice] = "Mirroring settings were successfully updated. The project is being updated."
elsif project.previous_changes.has_key?('mirror')
elsif project.previous_changes.key?('mirror')
flash[:notice] = "Mirroring was successfully disabled."
else
flash[:notice] = "Mirroring settings were successfully updated."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment