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
d65bee06ce
commit
9505a149ce
1 changed files with 1 additions and 2 deletions
|
@ -107,9 +107,8 @@ func (s *DNSSpoofer) Configure() error {
|
|||
for _, domain := range domains {
|
||||
if expr, err := glob.Compile(domain); err != nil {
|
||||
return fmt.Errorf("'%s' is not a valid domain glob expression: %s", domain, err)
|
||||
} else {
|
||||
s.Domains = append(s.Domains, expr)
|
||||
}
|
||||
s.Domains = append(s.Domains, expr)
|
||||
}
|
||||
|
||||
if err, addr = s.StringParam("dns.spoof.address"); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue