Skip to content

Commit

Permalink
fix: linters and CI
Browse files Browse the repository at this point in the history
All good now.

Signed-off-by: Alexey Palazhchenko <[email protected]>
  • Loading branch information
AlekSi authored and talos-bot committed May 8, 2021
1 parent d969f95 commit c6d0ae2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

[![Go Reference](https://pkg.go.dev/badge/github.com/talos-systems/go-debug.svg)](https://pkg.go.dev/github.com/talos-systems/go-debug)

`go-debug` is a Sidero-specific library for including debugging facilities for developers in our products when they are compiled with `sidero.debug` build tag. They are not included by default.
`go-debug` is a Sidero-specific library for including debugging facilities for developers in our products when they are compiled with `sidero.debug` build tag.
They are not included by default.
7 changes: 4 additions & 3 deletions debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

// debug is a Sidero-specific library for including debugging facilities for developers in our products
// Package debug is a Sidero-specific library for including debugging facilities for developers in our products
// when they are compiled with sidero.debug build tag. They are not included by default.
package debug

import (
"context"
"errors"
"fmt"
"net/http"
"reflect"
Expand Down Expand Up @@ -59,11 +60,11 @@ func ListenAndServe(ctx context.Context, addr string, log LogFunc) error {
go func() {
<-ctx.Done()

_ = s.Close()
_ = s.Close() //nolint:errcheck
}()

err := s.ListenAndServe()
if err == http.ErrServerClosed {
if errors.Is(err, http.ErrServerClosed) {
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion debug_off_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// +build !sidero.debug

package debug
package debug //nolint:testpackage // to test unexported method

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion debug_on_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// +build sidero.debug

package debug
package debug //nolint:testpackage // to test unexported method

import (
"testing"
Expand Down

0 comments on commit c6d0ae2

Please sign in to comment.