summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych/visitors/yaml_tree.rb
diff options
context:
space:
mode:
authorAlexander Momchilov <amomchilov@users.noreply.github.com>2023-12-19 12:27:06 -0500
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-12-25 21:12:49 +0900
commitbb1625858fa2cad85b12e50afc7978c760202a82 (patch)
treed0bd516efdbde453b620d50b3f54e0f255bbcd9a /ext/psych/lib/psych/visitors/yaml_tree.rb
parent95e7af0c59267d6ab6695906eaba93c9d181ac69 (diff)
[ruby/psych] Remove now-unreachable rescue block
https://github.com/ruby/psych/commit/6905a2123c
Diffstat (limited to 'ext/psych/lib/psych/visitors/yaml_tree.rb')
-rw-r--r--ext/psych/lib/psych/visitors/yaml_tree.rb2
1 files changed, 0 insertions, 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