Skip to content

Commit a114aea

Browse files
committed
Fixed linting error for new rule that prevents wrapping method arguments in brackets
1 parent 83877f8 commit a114aea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/helpers/application_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module ApplicationHelper
22
def edition_edit_link(edition)
3-
link_to((edition.draft? ? "edit" : "view details"), edit_admin_edition_path(edition), class: "govuk-link")
3+
link_content = edition.draft? ? "edit" : "view details"
4+
link_to(link_content, edit_admin_edition_path(edition), class: "govuk-link")
45
end
56

67
def preview_edition_link(edition, short, options = {})

0 commit comments

Comments
 (0)