mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
if block ends with a return statement drop this else and outdent its block
This commit is contained in:
parent
aee47df0a6
commit
069ad23282
1 changed files with 1 additions and 2 deletions
|
@ -27,9 +27,8 @@ func (t *CookieTracker) domainOf(req *http.Request) string {
|
|||
if parsed, err := tld.Parse(req.Host); err != nil {
|
||||
log.Warning("Could not parse host %s: %s", req.Host, err)
|
||||
return req.Host
|
||||
} else {
|
||||
return fmt.Sprintf("%s.%s", parsed.Domain, parsed.TLD)
|
||||
}
|
||||
return fmt.Sprintf("%s.%s", parsed.Domain, parsed.TLD)
|
||||
}
|
||||
|
||||
func (t *CookieTracker) keyOf(req *http.Request) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue