mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
CODE: Fix simple staticcheck items (#1329)
This commit is contained in:
@@ -521,10 +521,7 @@ func getZoneID(zone r53Types.HostedZone, r *models.RecordConfig) string {
|
||||
|
||||
/** Removes "/hostedzone/"" prefix from AWS ZoneId */
|
||||
func parseZoneId(zoneID string) string {
|
||||
if strings.HasPrefix(zoneID, "/hostedzone/") {
|
||||
zoneID = strings.TrimPrefix(zoneID, "/hostedzone/")
|
||||
}
|
||||
return zoneID
|
||||
return strings.TrimPrefix(zoneID, "/hostedzone/")
|
||||
}
|
||||
|
||||
func (r *route53Provider) GetRegistrarCorrections(dc *models.DomainConfig) ([]*models.Correction, error) {
|
||||
|
Reference in New Issue
Block a user