Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-10-05 14:24:31 +0300
committerJeff King <peff@peff.net>2022-10-05 16:28:15 +0300
commitf673838b4e5d49710792872c6a88c27eb985ade0 (patch)
tree3b5cf1e2ba87a67034103d36723acc6948b14780
parentaa0595e250c45f58f52483df5fea8bc227827120 (diff)
use underscores for unused variables
These are cases where we don't care about the assigned value itself, but leaving the name in place shows what value we're expecting to split or pop.
-rw-r--r--lib/tasks/index.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/index.rake b/lib/tasks/index.rake
index 04839a37..87ad7413 100644
--- a/lib/tasks/index.rake
+++ b/lib/tasks/index.rake
@@ -356,7 +356,7 @@ def local_index_doc(index_fun)
commit_sha = `git rev-parse #{tag}`.chomp
tree_sha = `git rev-parse #{tag}^{tree}`.chomp
tagger = `git cat-file commit #{tag} | grep committer`.chomp.split(" ")
- tz = tagger.pop
+ _tz = tagger.pop
ts = tagger.pop
ts = Time.at(ts.to_i)
[tag, commit_sha, tree_sha, ts]
@@ -368,7 +368,7 @@ def local_index_doc(index_fun)
get_file_list = lambda do |tree_sha|
entries = `git ls-tree -r #{tree_sha}`.strip.split("\n")
tree = entries.map do |e|
- mode, type, sha, path = e.split(" ")
+ _mode, _type, sha, path = e.split(" ")
[path, sha]
end
end