Skip to content

Both branches of if-then-else are the same #1776

@chavacava

Description

@chavacava

Both branches of if-then-else are the same

if errors.Is(result.Error, gorm.ErrRecordNotFound) {
return nil, result.Error
} else {
return nil, result.Error
}

Found with revive

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