Skip to content

Redundant checking for key value #19

@swpalmer

Description

@swpalmer

if(key >= connections.size() || connections[key] == NULL) {

There are two checks if the key value is too large, and a check if the connection is null. Only the second 'if' appears to be relevant. Was this the result of a bad merge?

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