From 3320ef144368b1b29fb877acba6ac609fc91bb94 Mon Sep 17 00:00:00 2001 From: Kenshi Muto Date: Tue, 17 Dec 2019 12:23:29 +0900 Subject: [PATCH] refacotring idgxmlbuilder --- lib/review/idgxmlbuilder.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/review/idgxmlbuilder.rb b/lib/review/idgxmlbuilder.rb index b62d8726e..3e64d0a76 100644 --- a/lib/review/idgxmlbuilder.rb +++ b/lib/review/idgxmlbuilder.rb @@ -322,12 +322,7 @@ def emlistnum(lines, caption = nil, _lang = nil) def listnum(lines, id, caption, lang = nil) puts '' - begin - list_header(id, caption, lang) - rescue KeyError - error "no such list: #{id}" - end - listnum_body(lines, lang) + super(lines, id, caption, lang) puts '' end