We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 299a317 commit 6bbb084Copy full SHA for 6bbb084
ext/libv8-node/location.rb
@@ -18,7 +18,7 @@ def install!
18
19
def self.load!
20
File.open(Pathname(__FILE__).dirname.join('.location.yml')) do |f|
21
- YAML.load(f) # rubocop:disable Security/YAMLLoad
+ YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(f) : YAML.load(f) # rubocop:disable Security/YAMLLoad
22
end
23
24
0 commit comments