Skip to content

Commit

Permalink
always return primary domain
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbr0wn authored and alexopenline committed Dec 5, 2024
1 parent ed774c2 commit e262028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domaincheck/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func PrimaryDomainCheck(domain string) (bool, string) {
// If no subdomain and domain wasn't expanded from a shortener,
// it's a valid primary domain
if subdomain == "" && !expanded {
return true, ""
return true, domain
}
// Otherwise, return the root domain
return false, root
Expand Down

0 comments on commit e262028

Please sign in to comment.