Skip to content

[lint-monster] bytes.Equal allocation cleanup in pkg/parser/virtual_fs.go #44459

Description

@github-actions

Summary

Daily make golint-custom found a targeted custom-linter issue in pkg/parser/virtual_fs.go.

Finding:

  • pkg/parser/virtual_fs.go:37: string(existing) != string(content) allocates; use !bytes.Equal(existing, content) instead

Expected outcome:

  • Replace the allocating string comparison with a non-allocating byte-slice comparison.
  • Keep the change minimal and localized to this finding.

Remediation checklist

  • Update the comparison to use bytes.Equal (and imports if needed).
  • Keep remediation scoped to this lint group only.
  • Prefer minimal, targeted code edits.
  • Validate by running make golint-custom.

Fused guidance for the assigned agent:

  • Be specific about the file and exact change.
  • Keep the task focused on this linter finding only.
  • Confirm success with make golint-custom.

Generated by 🧌 LintMonster · 15.1 AIC · ⌖ 5.56 AIC · ⊞ 4.4K ·

  • expires on Jul 15, 2026, 7:57 PM UTC-08:00

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions