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:
@ -45,8 +45,7 @@ func (rc *RecordConfig) String() string {
|
||||
func RRstoRCs(rrs []dns.RR, origin string) Records {
|
||||
rcs := make(Records, 0, len(rrs))
|
||||
for _, r := range rrs {
|
||||
var rc RecordConfig
|
||||
rc = RRtoRC(r, origin)
|
||||
rc := RRtoRC(r, origin)
|
||||
rcs = append(rcs, &rc)
|
||||
}
|
||||
return rcs
|
||||
|
Reference in New Issue
Block a user