diff options
author | Jeff King <peff@peff.net> | 2022-10-05 14:26:35 +0300 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2022-10-05 16:28:15 +0300 |
commit | eb8f3ca4de085f0a602191102adae15ed74927f6 (patch) | |
tree | e3932c9ea1048e5fbea3b4a44fe162280a0de325 | |
parent | f9875971f9b0610bac8facc074f1293197026baf (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.rake | 1 |
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 |