Skip to content

refactor: modernize interface{} to any in config command - #225

Open
ke23y wants to merge 1 commit into
marcus:mainfrom
ke23y:lint-fix-interface-any
Open

refactor: modernize interface{} to any in config command#225
ke23y wants to merge 1 commit into
marcus:mainfrom
ke23y:lint-fix-interface-any

Conversation

@ke23y

@ke23y ke23y commented Aug 22, 2026

Copy link
Copy Markdown

Summary

  • Replaces the pre-Go-1.18 interface{} type with the any alias across cmd/nightshift/commands/config.go (8 occurrences), a mechanical, behavior-preserving modernization consistent with current Go style conventions and commonly flagged by static analysis tooling.
  • golangci-lint (the linter configured in .github/workflows/ci.yml) could not be run in this sandbox because network access to proxy.golang.org is blocked. gofmt -l -s ., go vet ./..., and go build ./... were all clean before and after this change. A manual scan for common default-linter violations (unchecked errors, ineffectual assignments, unclosed resources) found no other issues.

Test plan

  • gofmt -l -s . — clean
  • go vet ./... — clean
  • go build ./... — succeeds
  • go test ./... — passes except TestCurrentBranch in internal/orchestrator, which fails identically on main due to a sandbox permission restriction unrelated to this change (cannot copy git hook templates), not a regression from this PR
  • golangci-lint run — not run locally (network access to proxy.golang.org unavailable in this sandbox); recommend running in CI

Nightshift-Task: lint-fix
Nightshift-Ref: https://github.com/marcus/nightshift


Automated by nightshift

Replaces the pre-Go-1.18 interface{} type with the any alias across
cmd/nightshift/commands/config.go for consistency with current Go style.

Nightshift-Task: lint-fix
Nightshift-Ref: https://github.com/marcus/nightshift
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