mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
if block ends with a return statement drop this else and outdent its block
This commit is contained in:
parent
5619127f93
commit
c6bbbca93f
1 changed files with 1 additions and 2 deletions
|
@ -40,9 +40,8 @@ func DHCP6For(what dhcp6.MessageType, to dhcp6.Packet, duid []byte) (err error,
|
|||
var rawCID []byte
|
||||
if raw, found := to.Options[dhcp6.OptionClientID]; !found || len(raw) < 1 {
|
||||
return ErrNoCID, p
|
||||
} else {
|
||||
rawCID = raw[0]
|
||||
}
|
||||
rawCID = raw[0]
|
||||
|
||||
p.Options.AddRaw(dhcp6.OptionClientID, rawCID)
|
||||
p.Options.AddRaw(dhcp6.OptionServerID, duid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue