fix: return early if tokenfile could not be read

Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
This commit is contained in:
Sandor Szücs 2020-03-09 13:45:06 +01:00
parent b0c12fba72
commit fe0e0c1250
No known key found for this signature in database
GPG Key ID: 2D7B996673E41107

View File

@ -138,6 +138,7 @@ func (cli *routeGroupClient) updateToken() {
token, err := ioutil.ReadFile(cli.tokenFile)
if err != nil {
log.Errorf("Failed to read token from file (%s): %v", cli.tokenFile, err)
return
}
cli.mu.Lock()