lib/metanorma/ieee/validate_section.rb in metanorma-ieee-1.1.1 vs lib/metanorma/ieee/validate_section.rb in metanorma-ieee-1.1.2

- old
+ new

@@ -1,10 +1,9 @@ module Metanorma module IEEE class Converter < Standoc::Converter def section_validate(doc) - doctype = doc&.at("//bibdata/ext/doctype")&.text - unless %w(amendment technical-corrigendum).include? doctype + unless %w(amendment technical-corrigendum).include? @doctype sections_presence_validate(doc.root) sections_sequence_validate(doc.root) end subclause_validate(doc.root) onlychild_clause_validate(doc.root)