Skip to content

Commit

Permalink
fix fetchonly authtoken implementation to return the default TLSConfi…
Browse files Browse the repository at this point in the history
…g address instead of nil
  • Loading branch information
misteriaud committed Dec 30, 2024
1 parent 0617074 commit a8db5c7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions comp/api/authtoken/fetchonlyimpl/authtoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ func (at *authToken) Get() (string, error) {
func (at *authToken) GetTLSClientConfig() *tls.Config {
if err := at.setToken(); err != nil {
at.log.Debugf("%s", err.Error())
return nil
}

return util.GetTLSClientConfig()
Expand All @@ -85,7 +84,6 @@ func (at *authToken) GetTLSClientConfig() *tls.Config {
func (at *authToken) GetTLSServerConfig() *tls.Config {
if err := at.setToken(); err != nil {
at.log.Debugf("%s", err.Error())
return nil
}

return util.GetTLSServerConfig()
Expand Down

0 comments on commit a8db5c7

Please sign in to comment.