Skip to content

Commit 392cdf5

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 7924fc9 commit 392cdf5

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
@@ -261,17 +261,17 @@ def each_cat_file_header(data)
261261
def tag_data(name)
262262
sha = sha.to_s
263263
tdata = command_lines('cat-file', 'tag', name)
264-
process_tag_data(tdata, name, 0)
264+
process_tag_data(tdata, name)
265265
end
266266

267-
def process_tag_data(data, name, indent=4)
267+
def process_tag_data(data, name)
268268
hsh = { 'name' => name }
269269

270270
each_cat_file_header(data) do |key, value|
271271
hsh[key] = value
272272
end
273273

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

276276
return hsh
277277
end

0 commit comments

Comments
 (0)