Skip to content

Unused assignment when not checking #16

@QartemisT

Description

@QartemisT

When defining a variable, and then checking if it doesn't exist and overriding it, it flags the original as unused.

Example:

local test = _G["Test"] -- This is flag as unused

if not test then
	test = CreateFrame("Frame", "Test")
end

test:SomeFunc()

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