Skip to content

Commit

Permalink
fix: avoid ruby warning for too many args
Browse files Browse the repository at this point in the history
  • Loading branch information
BuonOmo committed Sep 30, 2022
1 parent 85dbf03 commit cff87b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ffi-geos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ def default_notice_handler(*args)
end

def default_error_handler(*args)
raise Geos::GEOSException, args[0] % args[1]
raise Geos::GEOSException, args[1] ? args[0] % args[1] : args[0]
end
end

Expand Down

0 comments on commit cff87b9

Please sign in to comment.