summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-08-08 07:05:10 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-08-08 07:05:10 -0700
commit24c2b4a50a205bf711f23c9d4b9665a07a8288f4 (patch)
tree55d83fd27b5be21c21a1b133a78e27926ce2e483
parent3bca4c6a9c8068fcc0480abe92a165459bfd6de9 (diff)
downloadffi-yajl-24c2b4a50a205bf711f23c9d4b9665a07a8288f4.tar.gz
args aren't actually optional
and the caller ensures the hashes are initialized, so drop the defensive programming.
-rw-r--r--lib/ffi_yajl/ffi/encoder.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ffi_yajl/ffi/encoder.rb b/lib/ffi_yajl/ffi/encoder.rb
index 8837e12..3bad69f 100644
--- a/lib/ffi_yajl/ffi/encoder.rb
+++ b/lib/ffi_yajl/ffi/encoder.rb
@@ -4,8 +4,7 @@ require 'ffi_yajl/ffi'
module FFI_Yajl
module FFI
module Encoder
- def do_yajl_encode(obj, yajl_gen_opts = {}, opts)
-
+ def do_yajl_encode(obj, yajl_gen_opts, opts)
yajl_gen = FFI_Yajl.yajl_gen_alloc(nil);
# configure the yajl encoder