Skip to content

encoded-compare false positive #276

@caibirdme

Description

@caibirdme
xxx_test.go:80:2: encoded-compare: use assert.JSONEq (testifylint)

  assert.Equal(t, contentTypeJson, header.Header.Get("content-Type"))

const contentTypeJson = "application/json", this is not a comparison between two json objects

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