mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 18:57:17 -07:00
if block ends with a return statement drop this else and outdent its block
This commit is contained in:
parent
069ad23282
commit
343ad54b9a
1 changed files with 2 additions and 3 deletions
|
@ -304,10 +304,9 @@ func (s *SSLStripper) isMaxRedirs(hostname string) bool {
|
|||
// reset
|
||||
delete(s.redirs, hostname)
|
||||
return true
|
||||
} else {
|
||||
// increment
|
||||
s.redirs[hostname]++
|
||||
}
|
||||
// increment
|
||||
s.redirs[hostname]++
|
||||
} else {
|
||||
// start tracking redirections
|
||||
s.redirs[hostname] = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue