[PR #157] [MERGED] Preallocate to please linter #155

Closed
opened 2026-03-15 16:13:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fortio/dnsping/pull/157
Author: @ldemailly
Created: 1/17/2026
Status: Merged
Merged: 1/17/2026
Merged by: @ldemailly

Base: mainHead: new_lint


📝 Commits (1)

  • b157a87 Preallocate to please linter

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 dnsping.go (+1 -1)

📄 Description

Avoids (new in 2.8.0)

$ golangci-lint run
dnsping.go:81:3: Consider preallocating keys (prealloc)
                keys := []string{}
                ^
1 issues:
* prealloc: 1

will fix #156 build once merged and rebased


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fortio/dnsping/pull/157 **Author:** [@ldemailly](https://github.com/ldemailly) **Created:** 1/17/2026 **Status:** ✅ Merged **Merged:** 1/17/2026 **Merged by:** [@ldemailly](https://github.com/ldemailly) **Base:** `main` ← **Head:** `new_lint` --- ### 📝 Commits (1) - [`b157a87`](https://github.com/fortio/dnsping/commit/b157a8716ca7e75c707bcdfdb313ab5590d4f373) Preallocate to please linter ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `dnsping.go` (+1 -1) </details> ### 📄 Description Avoids (new in 2.8.0) ``` $ golangci-lint run dnsping.go:81:3: Consider preallocating keys (prealloc) keys := []string{} ^ 1 issues: * prealloc: 1 ``` will fix #156 build once merged and rebased --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 16:13:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dnsping#155
No description provided.