Skip to content

Prevent false positives #24

@almccon

Description

@almccon

Occasionally I'm getting a visual diff in map-gl-style-diff-viewer but I don't think there is actually any difference:

Image

It appears to be just a difference in the source files, where one is using more condensed formatting.

This:

      "layout": {
        "icon-image": [
          "case",
          ["in", "700-70", ["get", "pds_category"]],
          "money",
          ["in", "700-7460", ["get", "pds_category"]],
          "information",

vs this:

      "layout": {
        "icon-image": [
          "case",
          [
            "in",
            "700-70",
            [
              "get",
              "pds_category"
            ]
          ],
          "money",
          [
            "in",
            "700-7460",
            [
              "get",
              "pds_category"
            ]
          ],
          "information",
          [
            "in",
            "700-7600",
            [
              "get",
              "pds_category"
            ]
          ],

The diff should be able to ignore whitespace differences like these, right?

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