Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Sep 27, 2024
1 parent c770f31 commit 4b4a892
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ func (c *controller) handleRequest(ctx context.Context, req any) {
interval := time.Until(req.resource.Next())
diff := int64(interval) % int64(time.Second)
interval = time.Duration(int64(interval) - diff)
//nolint:mnd // oh, come on, I can divide by _two_
if diff > (int64(time.Second) / 2) {
interval += time.Second
}
Expand Down
2 changes: 1 addition & 1 deletion httprc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func TestClient(t *testing.T) {
if expected == nil {
expected = tc.Expected
}
require.Equal(t, dst, expected, `r.Resource should return expected value`)
require.Equal(t, expected, dst, `r.Resource should return expected value`)
})
}
}
Expand Down

0 comments on commit 4b4a892

Please sign in to comment.