Skip to content

Remove redundant null guard in classification message loop #12

@evansantos

Description

@evansantos

Context

GitSniff PR #10 finding (ℹ️ Info): Minor code cleanup.

Problem

In src/index.ts, the loop over recentHistory had a redundant if (!msg) continue check. history.slice(-3) always returns defined elements.

Note: This was already fixed as part of the warnings fix commit. Closing.

Ref: PR #10 GitSniff review

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions