Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix some minor issues reported by IntelliJ #1159

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

anderseknert
Copy link
Member

Would be good to know why golangci-lint fails to report these, as some were fairly obvious. But oh well!

And

Would be good to know why golangci-lint fails to report
these, as some were fairly obvious. But oh well!

Signed-off-by: Anders Eknert <anders@styra.com>
@@ -50,9 +50,7 @@ func (r *PrettyReporter) ReportConflicts(fixReport *Report) error {
if len(roots) > 0 {
fmt.Fprintln(r.outputWriter, "Source file conflicts:")

i := 0

for _, rootKey := range roots {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this just didn't work before? i was never increased...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. Not too disastrous though as it was just for printing an extra newline between groups.

@anderseknert anderseknert merged commit a55d2f4 into main Oct 2, 2024
4 checks passed
@anderseknert anderseknert deleted the minor-fixes branch October 2, 2024 10:39
charlieegan3 pushed a commit to charlieegan3/regal that referenced this pull request Jan 6, 2025
Would be good to know why golangci-lint fails to report
these, as some were fairly obvious. But oh well!

Signed-off-by: Anders Eknert <anders@styra.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants