Skip to content

No check after GetDowngradeInfo() #20739

@partimScurra

Description

@partimScurra

Static analysis tool flagged an instance of GetDowngradeInfo() that lacks a nil check of downgradeInfo and goes straight to .Enabled check, unlike other instances of this function being called.

downgradeInfo := m.s.GetDowngradeInfo()
if !downgradeInfo.Enabled {

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