mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Linting (#1996)
This commit is contained in:
@@ -252,8 +252,6 @@ func filterBy(s []targetConfig, m map[string]*targetConfig) []targetConfig {
|
||||
// copy and increment index
|
||||
s[i] = x
|
||||
i++
|
||||
} else {
|
||||
//fmt.Printf("DEBUG: comp %q YES\n", x.compareable)
|
||||
}
|
||||
}
|
||||
// // Prevent memory leak by erasing truncated values
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package diff2
|
||||
|
||||
// Return the highest valid index for an array. The equiv of len(s)-1, but with
|
||||
// highest returns the highest valid index for an array. The equiv of len(s)-1, but with
|
||||
// less likelihood that you'll commit an off-by-one error.
|
||||
func highest[S ~[]T, T any](s S) int {
|
||||
return len(s) - 1
|
||||
|
||||
Reference in New Issue
Block a user