lib/steep/ast/ignore.rb in steep-1.9.0.dev.2 vs lib/steep/ast/ignore.rb in steep-1.9.0

- old
+ new

@@ -77,10 +77,10 @@ def ignored_diagnostics if raw_diagnostics.empty? return :all end - if raw_diagnostics.size == 1 && raw_diagnostics[0].source == "all" + if raw_diagnostics.size == 1 && raw_diagnostics.fetch(0).source == "all" return :all end raw_diagnostics.map do |diagnostic| name = diagnostic[:name].source