Skip to content

Commit

Permalink
all: improve code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Dec 2, 2020
1 parent 641db73 commit 967e111
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
5 changes: 0 additions & 5 deletions internal/dhcpd/dhcpd.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ type ServerInterface interface {
SetOnLeaseChanged(onLeaseChanged OnLeaseChangedT)
}

// CheckConfig checks the configuration
func (s *Server) CheckConfig(config ServerConfig) error {
return nil
}

// Create - create object
func Create(config ServerConfig) *Server {
s := &Server{}
Expand Down
5 changes: 1 addition & 4 deletions internal/util/network_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ func GetValidNetInterfaces() ([]net.Interface, error) {

netIfaces := []net.Interface{}

for i := range ifaces {
iface := ifaces[i]
netIfaces = append(netIfaces, iface)
}
netIfaces = append(netIfaces, ifaces...)

return netIfaces, nil
}
Expand Down

0 comments on commit 967e111

Please sign in to comment.