Skip to content

Minor unreachable warning issue #189

@maximyzer

Description

@maximyzer

Describe the bug
While I was tracing the case_sensitive prelude metadata I realised that a warning is unreachable because the metadata property is an array at that point in the code, not an object

Reproduction Steps

  1. Have a basic game
  2. Have 1 prelude metadata and have the second one be case_sensitive
  3. The warning doesn't show up

What did you expect would happen?
The warning that case sensitive should be the first metadata prelude should show up

Easy fix: change object.keys with a for loop that checks all the keys
More thorough fix: Refactor metadata to always be an object

OS & Browser version, desktop/mobile
linux, chrome, on the web

Screenshots, example projects, other relevant issues, etc.

Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions