Skip to content

Commit c0e1751

Browse files
committed
Rename variable
The `siblings` variable has the same name as a method, so renaming the variable to avoid confusion.
1 parent 2af9675 commit c0e1751

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/presenters/hmrc_manual_section_presenter.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@ def breadcrumbs
3232
def previous_and_next_links
3333
return unless siblings
3434

35-
siblings = {}
35+
section_siblings = {}
3636

3737
if previous_sibling
38-
siblings[:previous_page] = {
38+
section_siblings[:previous_page] = {
3939
title: I18n.t("manuals.previous_page"),
4040
url: previous_sibling["base_path"],
4141
}
4242
end
4343

4444
if next_sibling
45-
siblings[:next_page] = {
45+
section_siblings[:next_page] = {
4646
title: I18n.t("manuals.next_page"),
4747
url: next_sibling["base_path"],
4848
}
4949
end
5050

51-
siblings
51+
section_siblings
5252
end
5353

5454
private

0 commit comments

Comments
 (0)