From bb1625858fa2cad85b12e50afc7978c760202a82 Mon Sep 17 00:00:00 2001 From: Alexander Momchilov Date: Tue, 19 Dec 2023 12:27:06 -0500 Subject: [PATCH] [ruby/psych] Remove now-unreachable rescue block https://github.com/ruby/psych/commit/6905a2123c --- ext/psych/lib/psych/visitors/yaml_tree.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/ext/psych/lib/psych/visitors/yaml_tree.rb b/ext/psych/lib/psych/visitors/yaml_tree.rb index eb2be46a71..4abdda31d6 100644 --- a/ext/psych/lib/psych/visitors/yaml_tree.rb +++ b/ext/psych/lib/psych/visitors/yaml_tree.rb @@ -26,8 +26,6 @@ module Psych def key? target @obj_to_node.key? target - rescue NoMethodError - false end def id_for target