Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jkralik committed Sep 28, 2022
1 parent 33e8b7b commit e4f24af
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Go 1.18
uses: actions/setup-go@v3
with:
go-version: "^1.18" # The Go version to download (if necessary) and use.
go-version: "1.18" # The Go version to download (if necessary) and use.

- run: go version

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staticAnalysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go 1.18
uses: actions/setup-go@v3
with:
go-version: "^1.18" # The Go version to download (if necessary) and use.
go-version: "1.18" # The Go version to download (if necessary) and use.

- run: go version

Expand Down
2 changes: 1 addition & 1 deletion client/observeResource.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (c *Client) StopObservingResource(ctx context.Context, observationID string
}
var resourceObservationID string
var deleteDevice *RefDevice
c.observeResourceCache.ReplaceWithFunc(resourceCacheID, func(oldValue *observationsHandler, oldLoaded bool) (newValue *observationsHandler, delete bool) {
c.observeResourceCache.ReplaceWithFunc(resourceCacheID, func(oldValue *observationsHandler, oldLoaded bool) (newValue *observationsHandler, deleteHandler bool) {
if !oldLoaded {
return nil, true
}
Expand Down
2 changes: 0 additions & 2 deletions pkg/net/coap/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import (
"github.com/plgd-dev/go-coap/v3/udp"
)

var errInactivityTimeout = fmt.Errorf("connection inactivity has reached a fail limit: closing connection")

type Observation = interface {
Cancel(context.Context) error
Canceled() bool
Expand Down

0 comments on commit e4f24af

Please sign in to comment.