diff options
author | Tim Smith <tsmith@chef.io> | 2017-06-20 15:37:38 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-06-20 15:37:38 -0700 |
commit | 672fce3aed2d68e7362dc5cfeb72df78f30eb3a2 (patch) | |
tree | 76598d0c31493ca6fa8a8353402136cf8003b997 /lib/ffi_yajl/encoder.rb | |
parent | f3f92275f804f4c6cf93ee054af7d4ba3e50030a (diff) | |
download | ffi-yajl-672fce3aed2d68e7362dc5cfeb72df78f30eb3a2.tar.gz |
Switch from reek/rubocop to chefstyle
Reek doesn't work with modern Rake
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/ffi_yajl/encoder.rb')
-rw-r--r-- | lib/ffi_yajl/encoder.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ffi_yajl/encoder.rb b/lib/ffi_yajl/encoder.rb index 3b07e95..97f3e66 100644 --- a/lib/ffi_yajl/encoder.rb +++ b/lib/ffi_yajl/encoder.rb @@ -47,7 +47,7 @@ module FFI_Yajl if str.respond_to?(:scrub) str.scrub! else - str.encode!("UTF-16le", undef: :replace, invalid: :replace).encode!('UTF-8') + str.encode!("UTF-16le", undef: :replace, invalid: :replace).encode!("UTF-8") end end str @@ -68,7 +68,7 @@ module FFI_Yajl if token.respond_to?(:scrub) token.scrub! else - token.encode!("UTF-16le", undef: :replace, invalid: :replace).encode!('UTF-8') + token.encode!("UTF-16le", undef: :replace, invalid: :replace).encode!("UTF-8") end case status when 1 # yajl_gen_keys_must_be_strings |