Skip to content

Commit e6a4b35

Browse files
committed
INFOPLAT-1560 Runs formating and linting
1 parent 5acee42 commit e6a4b35

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pkg/beholder/auth.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ func NewAuthHeaderProvider(privKey ed25519.PrivateKey, config *AuthHeaderProvide
5555
}
5656

5757
creds := &authHeaderPerRPCredentials{
58-
privKey: privKey,
59-
headerTTL: config.HeaderTTL,
60-
version: config.Version,
58+
privKey: privKey,
59+
headerTTL: config.HeaderTTL,
60+
version: config.Version,
6161
requireTransportSecurity: config.RequireTransportSecurity,
6262
}
6363
// Initialize the headers ~ lastUpdated is 0 so the headers are generated on the first call
@@ -77,7 +77,7 @@ func (a *authHeaderPerRPCredentials) RequireTransportSecurity() bool {
7777
return a.requireTransportSecurity
7878
}
7979

80-
// get headers returns the auth headers, refreshing them if they are expired
80+
// getHeaders returns the auth headers, refreshing them if they are expired
8181
func (a *authHeaderPerRPCredentials) getHeaders() map[string]string {
8282
if time.Since(a.lastUpdated) > a.headerTTL {
8383
a.refresh()
@@ -104,7 +104,6 @@ func (a *authHeaderPerRPCredentials) refresh() {
104104
}
105105
// Set the lastUpdated time to now
106106
a.lastUpdated = timeNow
107-
return
108107
}
109108

110109
// AuthHeaderConfig configures buildAuthHeadersV2

0 commit comments

Comments
 (0)