Skip to content

[nightshift] lint-fix: remove dead code in dashboard.go#4

Open
nightshift-micr wants to merge 1 commit intoMicrock:mainfrom
nightshift-micr:nightshift/lint-fix
Open

[nightshift] lint-fix: remove dead code in dashboard.go#4
nightshift-micr wants to merge 1 commit intoMicrock:mainfrom
nightshift-micr:nightshift/lint-fix

Conversation

@nightshift-micr
Copy link
Copy Markdown

Automated by Nightshift v3 (GLM 5.1).

Task: lint-fix
Category: pr
Changes: Removed unused requestJSON/responseJSON variables in internal/ui/dashboard.go. These were assigned via json.Marshal but never consumed — only silenced with blank identifier assignments. The data is already included via the detail object on line 309-314.

Merge if useful, close if not.

- Remove unreachable upstreamCalled branch in proxy/server.go:
  upstreamCalled was always true when checked, making the else
  branch (500 Internal Server Error) unreachable dead code.
- Remove unused requestJSON/responseJSON variables in ui/dashboard.go:
  these were computed but never referenced (detail object already
  contains the same data).
- Replace custom minInt() with built-in min() in audit/models.go:
  Go 1.21+ provides min as a builtin, making the hand-rolled
  version unnecessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant