Skip to content

worker: dead break statement in nats consumer select #360

Description

@mesutoezdil

The nats consumer fetch loop has two select cases that end with a break statement. The break is the last line of the case body, so it does nothing. staticcheck flags this as SA4011 (ineffective break).

File: src/libraries/go/worker/consumer/nats_consumer.go, lines 346 and 372.

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