- fix linter

* commit '8cdef183586a90a8f9067e5271f799a7284e2270':
  * make ci: exec linter
  - fix linter
This commit is contained in:
Simon Zolin 2020-08-26 18:16:41 +03:00
commit d23acd2016
2 changed files with 2 additions and 1 deletions

View File

@ -161,6 +161,7 @@ test:
go test -race -v -bench=. -coverprofile=coverage.txt -covermode=atomic ./... go test -race -v -bench=. -coverprofile=coverage.txt -covermode=atomic ./...
ci: client_with_deps ci: client_with_deps
$(MAKE) lint
go mod download go mod download
$(MAKE) test $(MAKE) test

View File

@ -458,7 +458,7 @@ func (s *v4Server) processRequest(req *dhcpv4.DHCPv4, resp *dhcpv4.DHCPv4) (*Lea
s.commitLease(lease) s.commitLease(lease)
} else if len(lease.Hostname) != 0 { } else if len(lease.Hostname) != 0 {
o := &optFQDN{ o := &optFQDN{
name: string(lease.Hostname), name: lease.Hostname,
} }
fqdn := dhcpv4.Option{ fqdn := dhcpv4.Option{
Code: dhcpv4.OptionFQDN, Code: dhcpv4.OptionFQDN,