small tweaks

This commit is contained in:
Miek Gieben 2013-06-23 21:41:49 +01:00
parent 9629b0ce8b
commit 83a2c0b789
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ func IsSubDomain(parent, child string) bool {
func IsFqdn(s string) bool {
l := len(s)
if l == 0 {
return false // ?
return false
}
return s[l-1] == '.'
}