Skip to content

Completed() method should call t.Complete() before .Bool() #1

@0abdelilah

Description

@0abdelilah

Hi! I noticed in Torrent.Completed():

func (t *Torrent) Completed() bool {
    return t.Complete.Bool() // Error
}

t.Complete is actually a function returning ReadOnlyFlag, so the correct code should be:

func (t *Torrent) Completed() bool {
    return t.Complete().Bool() 
}

This avoids the "undefined" compiler error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions