From 392cdf55c53fddf05c45af2d5f1bbf10d6a2c16b Mon Sep 17 00:00:00 2001 From: Simon Coffey Date: Mon, 16 Jan 2023 17:22:12 +0000 Subject: [PATCH] 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 --- lib/git/lib.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 6fd1a1f2..35791c02 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -261,17 +261,17 @@ def each_cat_file_header(data) def tag_data(name) sha = sha.to_s tdata = command_lines('cat-file', 'tag', name) - process_tag_data(tdata, name, 0) + process_tag_data(tdata, name) end - def process_tag_data(data, name, indent=4) + def process_tag_data(data, name) hsh = { 'name' => name } each_cat_file_header(data) do |key, value| hsh[key] = value end - hsh['message'] = data.collect {|line| line[indent..-1]}.join("\n") + "\n" + hsh['message'] = data.join("\n") + "\n" return hsh end