Skip to content

Commit

Permalink
fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurret committed Apr 24, 2024
1 parent 643d2e0 commit cbec978
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dependency/health_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func TestNewHealthServiceQuery(t *testing.T) {
tc := test.(testCase)
t.Run(fmt.Sprintf("%d_%s", i, tc.name), func(t *testing.T) {
act, err := NewHealthServiceQuery(tc.i)
assert.Equal(t, err, tc.err)
assert.Equal(t, tc.err, err)

if act != nil {
act.stopCh = nil
Expand Down
2 changes: 1 addition & 1 deletion dependency/vault_pki.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func goodFor(cert *x509.Certificate) (time.Duration, bool) {

// after we have the 'time the certificate should be rotated', figure out how
// far it is from now to sleep
sleepFor := time.Duration(rotationTime.Sub(now))
sleepFor := rotationTime.Sub(now)
if sleepFor <= 0 {
return 0, false
}
Expand Down

0 comments on commit cbec978

Please sign in to comment.