Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1545

Use nil for default options in client/cluster/etc.

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Dev Exp
    • Labels:
    • 1

      Client defaults options to `Options::Redacted.new`. This is pretty useless as the behavior of an empty Redacted is the same as of an empty Hash. The doc string specifies that options are a Hash.

      A better way of handling options is to default them to nil in the signature and then in the method body default to an empty hash.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: