Apply Style/RedundantReturn rubocop rule

We were already following this pattern most of the time.
This commit is contained in:
Javi Martín
2019-10-26 13:26:35 +02:00
parent ddb37f89ae
commit 8e3bfa0d72
8 changed files with 13 additions and 10 deletions

View File

@@ -254,7 +254,7 @@ def imageable_redirected_to_resource_show_or_navigate_to
find("a", text: "Not now, go to my proposal")
click_on "Not now, go to my proposal"
rescue
return
nil
end
def imageable_attach_new_file(_imageable_factory_name, path, success = true)