summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-11-09 17:02:03 -0800
committerPete Higgins <pete@peterhiggins.org>2020-11-09 17:02:03 -0800
commitf6f186fa5daf93f5603f76c0498b1a97c73375ea (patch)
treebe10bc00e760ac67ed784b6f4da300f3658fe20b
parentbb3fb5783c8900c38b30b2d5227d1aa1de24d76e (diff)
downloadchef-f6f186fa5daf93f5603f76c0498b1a97c73375ea.tar.gz
Remove inaccurate comments.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
-rw-r--r--lib/chef/json_compat.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/chef/json_compat.rb b/lib/chef/json_compat.rb
index c4a60665b4..f545c71373 100644
--- a/lib/chef/json_compat.rb
+++ b/lib/chef/json_compat.rb
@@ -27,14 +27,12 @@ class Chef
class <<self
- # API to use to avoid create_additions
def parse(source, opts = {})
FFI_Yajl::Parser.parse(source, opts)
rescue FFI_Yajl::ParseError => e
raise Chef::Exceptions::JSON::ParseError, e.message
end
- # Just call the JSON gem's parse method with a modified :max_nesting field
def from_json(source, opts = {})
obj = parse(source, opts)