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:26:35 +0300
committerJeff King <peff@peff.net>2022-10-05 16:28:15 +0300
commiteb8f3ca4de085f0a602191102adae15ed74927f6 (patch)
treee3932c9ea1048e5fbea3b4a44fe162280a0de325
parentf9875971f9b0610bac8facc074f1293197026baf (diff)
index: make return of new_content clear in expand_content()
The actual return of expand_content() is hidden behind a bunch of conditionals. Let's make it clear at the end that we are expanding new_content. Note that this is technically a little different, because one error code path would have returned the result of puts. But returning a nil new_content makes more sense.
-rw-r--r--lib/tasks/index.rake1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tasks/index.rake b/lib/tasks/index.rake
index c5e90808..3ff7d1f9 100644
--- a/lib/tasks/index.rake
+++ b/lib/tasks/index.rake
@@ -247,6 +247,7 @@ def index_doc(filter_tags, doc_list, get_content)
puts "#{new_fname} could not be resolved for expansion"
end
end
+ new_content
end
end