Skip to content

Commit

Permalink
[dhcpv4] fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
pmazzini committed Jan 25, 2019
1 parent e8ff9e5 commit 6980247
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dhcpv4/dhcpv4.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ func newSendFunc(client *async.Client) (sendFunc, error) {
// assertMessageType extracts message type and checks if it matches expected
func assertMessageType(d *dhcpv4.DHCPv4, mt dhcpv4.MessageType) error {
t := d.MessageType()
if t == nil {
return fmt.Errorf("unable to extract message type")
}
if *t != mt {
if t != mt {
return fmt.Errorf("invalid message type %s, want: %s", t.String(), mt.String())
}
return nil
Expand Down

0 comments on commit 6980247

Please sign in to comment.