Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fracasula committed Dec 5, 2024
1 parent 00dd89f commit 94967d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/sampleapp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ func setupWorkspaceConfigsPoller[K comparable, T diff.UpdateableElement](
poller.WithPollingBackoffMaxInterval[K, T](1*time.Minute),
poller.WithPollingBackoffMultiplier[K, T](1.5),
poller.WithOnResponse[K, T](func(err error) {
if err != nil {
if err != nil { // nolint:staticcheck
// Bump metric on failure
} else {
} else { // nolint:staticcheck
// Bump metric on success
}
}),
Expand Down Expand Up @@ -144,7 +144,7 @@ func run(ctx context.Context, log logger.Logger) error {

cacheMu.RLock()
// do something with "cache" here
cacheMu.RUnlock()
cacheMu.RUnlock() // nolint:staticcheck

return nil
}

0 comments on commit 94967d8

Please sign in to comment.