diff --git a/internal/dhcpsvc/server.go b/internal/dhcpsvc/server.go index c9c02979..745895ff 100644 --- a/internal/dhcpsvc/server.go +++ b/internal/dhcpsvc/server.go @@ -108,7 +108,6 @@ func New(ctx context.Context, conf *Config) (srv *DHCPServer, err error) { // Don't wrap the error since it's informative enough as is. return nil, err } - // TODO(e.burkov): Migrate. return srv, nil } @@ -216,7 +215,7 @@ func (srv *DHCPServer) AddLease(ctx context.Context, l *Lease) (err error) { addr := l.IP iface, err := srv.ifaceForAddr(addr) if err != nil { - // Don't wrap the error since there is already an annotation deferred. + // Don't wrap the error since it's already informative enough as is. return err } @@ -231,7 +230,7 @@ func (srv *DHCPServer) AddLease(ctx context.Context, l *Lease) (err error) { err = srv.dbStore(ctx) if err != nil { - // Don't wrap the error since there is already an annotation deferred. + // Don't wrap the error since it's already informative enough as is. return err } @@ -255,7 +254,7 @@ func (srv *DHCPServer) UpdateStaticLease(ctx context.Context, l *Lease) (err err addr := l.IP iface, err := srv.ifaceForAddr(addr) if err != nil { - // Don't wrap the error since there is already an annotation deferred. + // Don't wrap the error since it's already informative enough as is. return err } @@ -270,7 +269,7 @@ func (srv *DHCPServer) UpdateStaticLease(ctx context.Context, l *Lease) (err err err = srv.dbStore(ctx) if err != nil { - // Don't wrap the error since there is already an annotation deferred. + // Don't wrap the error since it's already informative enough as is. return err } @@ -292,7 +291,7 @@ func (srv *DHCPServer) RemoveLease(ctx context.Context, l *Lease) (err error) { addr := l.IP iface, err := srv.ifaceForAddr(addr) if err != nil { - // Don't wrap the error since there is already an annotation deferred. + // Don't wrap the error since it's already informative enough as is. return err } @@ -307,7 +306,7 @@ func (srv *DHCPServer) RemoveLease(ctx context.Context, l *Lease) (err error) { err = srv.dbStore(ctx) if err != nil { - // Don't wrap the error since there is already an annotation deferred. + // Don't wrap the error since it's already informative enough as is. return err }