Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

Transaction block returns nil #5

@kschiess

Description

@kschiess

This transaction block always returns nil:

transaction do
  return true
end

I was expecting true.

The code at https://github.com/datamapper/dm-transactions/blob/master/lib/dm-transactions.rb#L142 seems guilty: Return value is not assigned (because we return early) and is thus nil.

I would leave the return value alone, the block is at the end of the method anyway.

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