Skip to content

warning: instance variable @loaded not initialized #413

Description

@ziggythehamster

On Ruby 2.6 / Cequel 3.2.1, this error happens on load. Here's the full error:

D:/MSYS2/mingw64/lib/ruby/gems/2.6.0/gems/cequel-3.2.1/lib/cequel/record/persistence.rb:163: warning: instance variable @loaded not initialized

https://github.com/cequel/cequel/blob/master/lib/cequel/record/persistence.rb#L163 is using the !! technique to coalesce the variable to a boolean, but should instead check if instance_variable_defined?(:@loaded).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions