Skip to content

Commit

Permalink
Merge pull request #31 from pmazzini/dhcpv4
Browse files Browse the repository at this point in the history
[dhcpv4] fix build
  • Loading branch information
jparise committed Jan 25, 2019
2 parents e8ff9e5 + a8941b5 commit 3fd6665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: go
go:
- 1.9
- 1.10.x
before_install:
- go get github.com/golang/lint/golint
install:
Expand Down
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 3fd6665

Please sign in to comment.