diff options
author | Jeff King <peff@peff.net> | 2022-10-05 14:21:49 +0300 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2022-10-05 16:28:15 +0300 |
commit | 32d414dab03dacfb0cf2ac1de83d1ce1a48db84c (patch) | |
tree | da7868dcef308113a1ca88c3c6bd016335d240e3 | |
parent | 9d597c16bb1b3d8d74a917b411180e4a198a2885 (diff) |
book2: drop unused "filename" assignment from genbook()
This _could_ be useful, in that we're overriding the top-level filename
whose contents we already grabbed. But nobody actually looks at it after
we assign, so let's avoid the extra confusion (and rubocop warning).
-rw-r--r-- | lib/tasks/book2.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/book2.rake b/lib/tasks/book2.rake index 816c91a3..9d17d269 100644 --- a/lib/tasks/book2.rake +++ b/lib/tasks/book2.rake @@ -93,7 +93,7 @@ def genbook(code, &get_content) puts "not including #{chapter_title}\n" break end - chapter_type, chapter_number, filename = chapters ["ch#{index}"] + chapter_type, chapter_number = chapters ["ch#{index}"] chapter = entry next if !chapter_title |