aboutsummaryrefslogtreecommitdiffstats
path: root/auth/file_source.go
diff options
context:
space:
mode:
Diffstat (limited to 'auth/file_source.go')
-rw-r--r--auth/file_source.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/file_source.go b/auth/file_source.go
index 11e7325..9223d1d 100644
--- a/auth/file_source.go
+++ b/auth/file_source.go
@@ -47,7 +47,7 @@ func ReadFile(path string) ([]byte, bool, error) {
func ReadToken(path string) (*oauth2.Token, bool, error) {
content, exists, err := ReadFile(path)
- if err != nil {
+ if err != nil || exists == false {
return nil, exists, err
}