Skip to content

Commit 44b3e69

Browse files
committed
rubocop --only Layout/CommentIndentation,Layout/FirstArrayElementIndentation,Layout/IndentationConsistency,Layout/ArrayAlignment -a
1 parent 8e08a3c commit 44b3e69

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

app/helpers/messages_helper.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ def without_list_prefix(subject)
77
def search_snippet(body, keyword)
88
snippet = ''
99

10-
offset = 0
11-
while (i = body.index(keyword, offset))
12-
start = [i - MARGIN, offset].max
13-
len = keyword.length + MARGIN
14-
snippet += body[start, len]
15-
offset = start + len
16-
end
10+
offset = 0
11+
while (i = body.index(keyword, offset))
12+
start = [i - MARGIN, offset].max
13+
len = keyword.length + MARGIN
14+
snippet += body[start, len]
15+
offset = start + len
16+
end
1717

18-
if snippet.empty?
19-
return body[0, MARGIN * 2]
20-
else
21-
snippet
22-
end
18+
if snippet.empty?
19+
return body[0, MARGIN * 2]
20+
else
21+
snippet
22+
end
2323
end
2424
end

app/models/list.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
class List
22
def initialize(name, id)
33
@name = name
4-
@id = id
4+
@id = id
55
end
66
attr_reader :name, :id
77

8-
# Ordered by the established dates. ruby-list was started in 1995.
8+
# Ordered by the established dates. ruby-list was started in 1995.
99
LISTS = [
10-
List.new('ruby-list', 1),
11-
List.new('ruby-dev', 2),
12-
List.new('ruby-core', 3),
13-
List.new('ruby-talk', 4),
10+
List.new('ruby-list', 1),
11+
List.new('ruby-dev', 2),
12+
List.new('ruby-core', 3),
13+
List.new('ruby-talk', 4),
1414
]
1515

1616
def self.find_by_name(name)

0 commit comments

Comments
 (0)