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

@@ -308,7 +308,7 @@ def documentable_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 documentable_attach_new_file(path, success = true)