Skip to content

case doesn't need brackets  #120

@davidhesselbom

Description

@davidhesselbom

For example,

        match type {
            case TextureType monochrome =>
                this internalFormat = GL_R8
                this format = GL_RED
                this _bytesPerPixel = 1
            case TextureType rgba =>

works just fine, so magic should warn about unnecessary brackets in

        match type {
            case TextureType monochrome => {
                this internalFormat = GL_R8
                this format = GL_RED
                this _bytesPerPixel = 1
            }
            case TextureType rgba =>

and so on because brackets are ugly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions