mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -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
|
// reset
|
||||||
delete(s.redirs, hostname)
|
delete(s.redirs, hostname)
|
||||||
return true
|
return true
|
||||||
} else {
|
|
||||||
// increment
|
|
||||||
s.redirs[hostname]++
|
|
||||||
}
|
}
|
||||||
|
// increment
|
||||||
|
s.redirs[hostname]++
|
||||||
} else {
|
} else {
|
||||||
// start tracking redirections
|
// start tracking redirections
|
||||||
s.redirs[hostname] = 1
|
s.redirs[hostname] = 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue