Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Better way to test for color #14

@v0dro

Description

@v0dro

@bar_color = COLOR_INDEX[marker_color] if @bar_color.is_a? Symbol

A better way would be check would be to see if a key is actually present in the hash. Like
... if COLOR_INDEX.has_key?(marker)

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