diff options
Diffstat (limited to 'lib/chef/util/diff.rb')
| -rw-r--r-- | lib/chef/util/diff.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/chef/util/diff.rb b/lib/chef/util/diff.rb index 3117484a71..c2dc6e045c 100644 --- a/lib/chef/util/diff.rb +++ b/lib/chef/util/diff.rb @@ -176,10 +176,7 @@ class Chef end def encode_diff_for_json(diff_str) - if Object.const_defined? :Encoding - diff_str.encode!('UTF-8', :invalid => :replace, :undef => :replace, :replace => '?') - end - return diff_str + diff_str.encode!('UTF-8', :invalid => :replace, :undef => :replace, :replace => '?') end end |
