Skip to content

Commit

Permalink
fix linting problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulexus committed May 5, 2018
1 parent 9e495f3 commit 11542b3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion endpoints/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func Watch(ctx context.Context, c *k8s.Client, changes chan error, namespace str
changes <- errors.Wrap(err, "failed to watch namespace")
return errors.Wrap(err, "failed to watch namespace")
}
defer w.Close()
defer w.Close() // nolint: errcheck

for ctx.Err() == nil {
ep := new(corev1.Endpoints)
Expand Down
2 changes: 1 addition & 1 deletion kamailio/kamailio.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func newClientCodec(conn io.ReadWriteCloser) *binRPCClientCodec {
func InvokeMethod(method string, host string, port string) error {

conn, err := net.Dial("udp", host+":"+port)
defer conn.Close()
defer conn.Close() // nolint

if err != nil {
return errors.Wrap(err, "failed to connect to kamailio RPC server")
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (s *dispatcherSets) export() error {
if err != nil {
return errors.Wrap(err, "failed to open dispatchers file for writing")
}
defer f.Close()
defer f.Close() // nolint: errcheck

for _, v := range s.sets {
_, err = f.WriteString(v.Export())
Expand Down
4 changes: 1 addition & 3 deletions sets/sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ type staticSet struct {
Members []string
}

func (s *staticSet) Close() {
return
}
func (s *staticSet) Close() {}

func (s *staticSet) ID() int {
return s.id
Expand Down

0 comments on commit 11542b3

Please sign in to comment.