Skip to content

Commit 2767684

Browse files
author
Simon Coffey
committed
Remove #process_tag_data indent parameter
As with the previous commits, this indent parameter appears to be a relic of old usage; the #process_tag_data method has a single caller that explicitly sets the indent to zero, so the indent parameter and associated handling can just be removed. Signed-off-by: Simon Coffey <simon.coffey@futurelearn.com>
1 parent d4a9026 commit 2767684

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/git/lib.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@ def each_commit_header(data)
262262
def tag_data(name)
263263
sha = sha.to_s
264264
tdata = command_lines('cat-file', 'tag', name)
265-
process_tag_data(tdata, name, 0)
265+
process_tag_data(tdata, name)
266266
end
267267

268-
def process_tag_data(data, name, indent=4)
268+
def process_tag_data(data, name)
269269
hsh = {
270270
'name' => name,
271271
'message' => ''
@@ -279,7 +279,7 @@ def process_tag_data(data, name, indent=4)
279279
hsh[key] = value.join(' ')
280280
end
281281

282-
hsh['message'] = data.collect {|line| line[indent..-1]}.join("\n") + "\n"
282+
hsh['message'] = data.join("\n") + "\n"
283283

284284
return hsh
285285
end

0 commit comments

Comments
 (0)