summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-01-25 20:50:48 -0800
committerTim Smith <tsmith@chef.io>2018-02-13 13:25:20 +0000
commit4456cd7f4f1d0cbda5e07e343e95f611aa6ce3a4 (patch)
tree68fc70d1437b07a2a7ecd538f2ab278c9a316a15
parent5ace629861c424cdd61f086b96da284918f15a5a (diff)
downloadchef-4456cd7f4f1d0cbda5e07e343e95f611aa6ce3a4.tar.gz
Chefstyle fixes
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/ohai_hint.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/ohai_hint.rb b/lib/chef/resource/ohai_hint.rb
index ac3ca63a46..71a4296c40 100644
--- a/lib/chef/resource/ohai_hint.rb
+++ b/lib/chef/resource/ohai_hint.rb
@@ -56,7 +56,7 @@ class Chef
# @return [String] absolute path to the file
def ohai_hint_file_path(filename)
path = ::File.join(::Ohai::Config.ohai.hints_path.first, filename)
- path << '.json' unless path.end_with?('.json')
+ path << ".json" unless path.end_with?(".json")
path
end
@@ -64,7 +64,7 @@ class Chef
# @param content [Hash] the content of the hint file
# @return [JSON] json representation of the content of an empty string if content was nil
def format_content(content)
- return '' if content.nil? || content.empty?
+ return "" if content.nil? || content.empty?
JSON.pretty_generate(content)
end
end