mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Cleanups: Fix many issues reported by staticcheck.io (#837)
* Lint: Fix ST1005: error strings should not be capitalized * Cleanup: Fix a lot of staticcheck.io warnings
This commit is contained in:
@@ -23,9 +23,7 @@ func WriteYaml(w io.Writer, records models.Records, origin string) error {
|
||||
|
||||
// Make a copy of the records, since we want to sort and muck with them.
|
||||
recsCopy := models.Records{}
|
||||
for _, r := range records {
|
||||
recsCopy = append(recsCopy, r)
|
||||
}
|
||||
recsCopy = append(recsCopy, records...)
|
||||
for _, r := range recsCopy {
|
||||
if r.GetLabel() == "@" {
|
||||
//r.Name = ""
|
||||
|
Reference in New Issue
Block a user