From 32d414dab03dacfb0cf2ac1de83d1ce1a48db84c Mon Sep 17 00:00:00 2001 From: Jeff King Date: Wed, 5 Oct 2022 07:21:49 -0400 Subject: 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). --- lib/tasks/book2.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3