diff options
author | Luis Fernando Estrozi <lestrozi@gmail.com> | 2018-07-27 07:13:37 -0700 |
---|---|---|
committer | Luis Fernando Estrozi <lestrozi@gmail.com> | 2018-07-27 07:16:31 -0700 |
commit | bb3ffbfadfc3d2fdce66a748bad54446655ecbef (patch) | |
tree | 8d0c605183e6c69aaf9e6973e30be0d72553ac3c | |
parent | 6436a75b81e1504d394d8bc480b7ff458b07fcc8 (diff) |
Fix indentation
-rw-r--r-- | dhcpv6/client.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dhcpv6/client.go b/dhcpv6/client.go index caee751..8431482 100644 --- a/dhcpv6/client.go +++ b/dhcpv6/client.go @@ -58,14 +58,14 @@ func (c *Client) Exchange(ifname string, solicit DHCPv6, modifiers ...Modifier) } conversation = append(conversation, advertise) - // Decapsulate advertise if it's relayed before passing it to Request - if advertise.IsRelay() { - advertiseRelay := advertise.(*DHCPv6Relay) - advertise, err = advertiseRelay.GetInnerMessage() - if err != nil { - return conversation, err - } - } + // Decapsulate advertise if it's relayed before passing it to Request + if advertise.IsRelay() { + advertiseRelay := advertise.(*DHCPv6Relay) + advertise, err = advertiseRelay.GetInnerMessage() + if err != nil { + return conversation, err + } + } request, reply, err := c.Request(ifname, advertise, nil, modifiers...) if request != nil { conversation = append(conversation, request) |